pub enum MulticastMembershipInterfaceSelector<A: IpAddress, D> {
Specified(MulticastInterfaceSelector<A, D>),
AnyInterfaceWithRoute,
}
Expand description
Selector for the device to use when changing multicast membership settings.
This is like Option<MulticastInterfaceSelector
except it specifies the
semantics of the None
value as “pick any device”.
Variants§
Specified(MulticastInterfaceSelector<A, D>)
Use the specified interface.
AnyInterfaceWithRoute
Pick any device with a route to the multicast target address.
Trait Implementations§
source§impl<A: Clone + IpAddress, D: Clone> Clone for MulticastMembershipInterfaceSelector<A, D>
impl<A: Clone + IpAddress, D: Clone> Clone for MulticastMembershipInterfaceSelector<A, D>
source§fn clone(&self) -> MulticastMembershipInterfaceSelector<A, D>
fn clone(&self) -> MulticastMembershipInterfaceSelector<A, D>
Returns a copy 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 moresource§impl<A: IpAddress, D> From<MulticastInterfaceSelector<A, D>> for MulticastMembershipInterfaceSelector<A, D>
impl<A: IpAddress, D> From<MulticastInterfaceSelector<A, D>> for MulticastMembershipInterfaceSelector<A, D>
source§fn from(selector: MulticastInterfaceSelector<A, D>) -> Self
fn from(selector: MulticastInterfaceSelector<A, D>) -> Self
Converts to this type from the input type.
source§impl<A: IpAddress, D, IpType: Ip> GenericOverIp<IpType> for MulticastMembershipInterfaceSelector<A, D>
impl<A: IpAddress, D, IpType: Ip> GenericOverIp<IpType> for MulticastMembershipInterfaceSelector<A, D>
§type Type = MulticastMembershipInterfaceSelector<<IpType as Ip>::Addr, D>
type Type = MulticastMembershipInterfaceSelector<<IpType as Ip>::Addr, D>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.source§impl<A: PartialEq + IpAddress, D: PartialEq> PartialEq for MulticastMembershipInterfaceSelector<A, D>
impl<A: PartialEq + IpAddress, D: PartialEq> PartialEq for MulticastMembershipInterfaceSelector<A, D>
source§fn eq(&self, other: &MulticastMembershipInterfaceSelector<A, D>) -> bool
fn eq(&self, other: &MulticastMembershipInterfaceSelector<A, D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<A: Copy + IpAddress, D: Copy> Copy for MulticastMembershipInterfaceSelector<A, D>
impl<A: Eq + IpAddress, D: Eq> Eq for MulticastMembershipInterfaceSelector<A, D>
impl<A: IpAddress, D> StructuralPartialEq for MulticastMembershipInterfaceSelector<A, D>
Auto Trait Implementations§
impl<A, D> Freeze for MulticastMembershipInterfaceSelector<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + Freeze,
D: Freeze,
impl<A, D> RefUnwindSafe for MulticastMembershipInterfaceSelector<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + RefUnwindSafe,
D: RefUnwindSafe,
impl<A, D> Send for MulticastMembershipInterfaceSelector<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static,
D: Send,
impl<A, D> Sync for MulticastMembershipInterfaceSelector<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static,
D: Sync,
impl<A, D> Unpin for MulticastMembershipInterfaceSelector<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + Unpin,
D: Unpin,
impl<A, D> UnwindSafe for MulticastMembershipInterfaceSelector<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + UnwindSafe,
D: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.