Struct netstack3_core::testutil::MonotonicIdentifier
source · pub struct MonotonicIdentifier(/* private fields */);
Expand description
A convenient monotonically increasing identifier to use as the bindings’
DeviceIdentifier
in tests.
Implementations§
Trait Implementations§
source§impl Debug for MonotonicIdentifier
impl Debug for MonotonicIdentifier
source§impl Default for MonotonicIdentifier
impl Default for MonotonicIdentifier
source§impl DeviceIdAndNameMatcher for MonotonicIdentifier
impl DeviceIdAndNameMatcher for MonotonicIdentifier
source§fn id_matches(&self, _id: &NonZeroU64) -> bool
fn id_matches(&self, _id: &NonZeroU64) -> bool
Returns whether the provided ID matches the ID of the device.
source§fn name_matches(&self, _name: &str) -> bool
fn name_matches(&self, _name: &str) -> bool
Returns whether the provided name matches the name of the device.
Auto Trait Implementations§
impl Freeze for MonotonicIdentifier
impl RefUnwindSafe for MonotonicIdentifier
impl Send for MonotonicIdentifier
impl Sync for MonotonicIdentifier
impl Unpin for MonotonicIdentifier
impl UnwindSafe for MonotonicIdentifier
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.