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>
impl<A, D> RefUnwindSafe for MulticastMembershipInterfaceSelector<A, D>where
D: RefUnwindSafe,
A: RefUnwindSafe,
impl<A, D> Send for MulticastMembershipInterfaceSelector<A, D>where
D: Send,
impl<A, D> Sync for MulticastMembershipInterfaceSelector<A, D>where
D: Sync,
impl<A, D> Unpin for MulticastMembershipInterfaceSelector<A, D>
impl<A, D> UnwindSafe for MulticastMembershipInterfaceSelector<A, D>where
D: UnwindSafe,
A: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more