Enum netstack3_core::filter::InterfaceMatcher
source · pub enum InterfaceMatcher<DeviceClass> {
Id(NonZero<u64>),
Name(String),
DeviceClass(DeviceClass),
}
Expand description
A matcher for network interfaces.
Variants§
Id(NonZero<u64>)
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 for InterfaceMatcher<DeviceClass>where
DeviceClass: Clone,
impl<DeviceClass> Clone for InterfaceMatcher<DeviceClass>where
DeviceClass: Clone,
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<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.