pub struct MulticastDiscoveryConfig {
pub multicast_group_ip: Ipv4Addr,
pub multicast_port: u16,
pub multicast_backup_ports: Vec<u16>,
pub service_name: Cow<'static, str>,
pub central_discovery_addr: Option<IpAddr>,
pub announce_interval: Duration,
pub extended_announcement_effect_dur: Duration,
pub extend_request_interval: Duration,
pub enable_announce: bool,
pub discover_replies: bool,
}Fields§
§multicast_group_ip: Ipv4Addr§multicast_port: u16§multicast_backup_ports: Vec<u16>§service_name: Cow<'static, str>§central_discovery_addr: Option<IpAddr>§announce_interval: Duration§extended_announcement_effect_dur: Duration§extend_request_interval: Duration§enable_announce: bool§discover_replies: boolImplementations§
Source§impl MulticastDiscoveryConfig
impl MulticastDiscoveryConfig
pub fn new( multicast_group_ip: Ipv4Addr, service_name: Cow<'static, str>, ) -> Self
pub fn with_multicast_port(self, multicast_port: u16) -> Self
pub fn with_backup_ports(self, backup_ports: Range<u16>) -> Self
pub fn iter_ports(&self) -> impl Iterator<Item = u16> + '_
pub fn with_disabled_announce(self) -> Self
pub fn with_disabled_discover_replies(self) -> Self
pub fn with_announce_interval(self, announce_interval: Duration) -> Self
pub fn with_extended_announcement_effect_dur( self, effect_duration: Duration, ) -> Self
pub fn with_extend_request_interval( self, extend_request_interval: Duration, ) -> Self
Trait Implementations§
Source§impl Clone for MulticastDiscoveryConfig
impl Clone for MulticastDiscoveryConfig
Source§fn clone(&self) -> MulticastDiscoveryConfig
fn clone(&self) -> MulticastDiscoveryConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MulticastDiscoveryConfig
impl RefUnwindSafe for MulticastDiscoveryConfig
impl Send for MulticastDiscoveryConfig
impl Sync for MulticastDiscoveryConfig
impl Unpin for MulticastDiscoveryConfig
impl UnwindSafe for MulticastDiscoveryConfig
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