pub enum TargetDevice<D> {
AnyDevice,
SpecificDevice(D),
}
Expand description
Selector for devices to send and receive packets on.
Variants§
Trait Implementations§
source§impl<D: Clone> Clone for TargetDevice<D>
impl<D: Clone> Clone for TargetDevice<D>
source§fn clone(&self) -> TargetDevice<D>
fn clone(&self) -> TargetDevice<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<D: Debug> Debug for TargetDevice<D>
impl<D: Debug> Debug for TargetDevice<D>
source§impl<D> Default for TargetDevice<D>
impl<D> Default for TargetDevice<D>
source§impl<D: Hash> Hash for TargetDevice<D>
impl<D: Hash> Hash for TargetDevice<D>
source§impl<D: PartialEq> PartialEq for TargetDevice<D>
impl<D: PartialEq> PartialEq for TargetDevice<D>
source§fn eq(&self, other: &TargetDevice<D>) -> bool
fn eq(&self, other: &TargetDevice<D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<D: Eq> Eq for TargetDevice<D>
impl<D> StructuralPartialEq for TargetDevice<D>
Auto Trait Implementations§
impl<D> Freeze for TargetDevice<D>where
D: Freeze,
impl<D> RefUnwindSafe for TargetDevice<D>where
D: RefUnwindSafe,
impl<D> Send for TargetDevice<D>where
D: Send,
impl<D> Sync for TargetDevice<D>where
D: Sync,
impl<D> Unpin for TargetDevice<D>where
D: Unpin,
impl<D> UnwindSafe for TargetDevice<D>where
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.