pub struct MulticastConfig {
pub enabled: bool,
pub group: String,
pub port: u16,
pub ttl: u32,
pub interval_seconds: u64,
}Expand description
Multicast settings: the group, the port, how far a datagram travels and how often this node announces.
Fields§
§enabled: boolWhether the multicast provider runs.
group: StringThe group, dotted IPv4 in 239.0.0.0/8 by convention.
port: u16The UDP port.
ttl: u32The datagram TTL; 1 keeps announcements on the local segment.
interval_seconds: u64Seconds between announcements (a jitter is added).
Trait Implementations§
Source§impl Clone for MulticastConfig
impl Clone for MulticastConfig
Source§fn clone(&self) -> MulticastConfig
fn clone(&self) -> MulticastConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MulticastConfig
impl Debug for MulticastConfig
Source§impl Default for MulticastConfig
impl Default for MulticastConfig
Source§impl<'de> Deserialize<'de> for MulticastConfig
impl<'de> Deserialize<'de> for MulticastConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for MulticastConfig
impl JsonSchema for MulticastConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for MulticastConfig
impl RefUnwindSafe for MulticastConfig
impl Send for MulticastConfig
impl Sync for MulticastConfig
impl Unpin for MulticastConfig
impl UnsafeUnpin for MulticastConfig
impl UnwindSafe for MulticastConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more