pub enum InterfaceMatcher<DeviceClass> {
Id(NonZeroU64),
Name(String),
DeviceClass(DeviceClass),
}
Expand description
A matcher for network interfaces.
Variants§
Id(NonZeroU64)
The ID of the interface as assigned by the netstack.
Name(String)
The name of the interface.
DeviceClass(DeviceClass)
The device class of the interface.
Trait Implementations§
source§impl<DeviceClass: Clone> Clone for InterfaceMatcher<DeviceClass>
impl<DeviceClass: Clone> Clone for InterfaceMatcher<DeviceClass>
source§fn clone(&self) -> InterfaceMatcher<DeviceClass>
fn clone(&self) -> InterfaceMatcher<DeviceClass>
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 moreAuto Trait Implementations§
impl<DeviceClass> Freeze for InterfaceMatcher<DeviceClass>where
DeviceClass: Freeze,
impl<DeviceClass> RefUnwindSafe for InterfaceMatcher<DeviceClass>where
DeviceClass: RefUnwindSafe,
impl<DeviceClass> Send for InterfaceMatcher<DeviceClass>where
DeviceClass: Send,
impl<DeviceClass> Sync for InterfaceMatcher<DeviceClass>where
DeviceClass: Sync,
impl<DeviceClass> Unpin for InterfaceMatcher<DeviceClass>where
DeviceClass: Unpin,
impl<DeviceClass> UnwindSafe for InterfaceMatcher<DeviceClass>where
DeviceClass: 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<CC, BC, Meta> RecvFrameContext<BC, Meta> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<BC, Meta> 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§impl<Meta, BC> SendableFrameMeta<FakeFrameCtx<Meta>, BC> for Meta
impl<Meta, BC> SendableFrameMeta<FakeFrameCtx<Meta>, BC> for Meta
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.