Struct netstack3_core::testutil::context::FakeInstantCtx
source · pub struct FakeInstantCtx {
pub time: FakeInstant,
}
Expand description
A fake InstantContext
which stores the current time as a
FakeInstant
.
Fields§
§time: FakeInstant
The fake instant held by this fake context.
Implementations§
Trait Implementations§
source§impl Default for FakeInstantCtx
impl Default for FakeInstantCtx
source§fn default() -> FakeInstantCtx
fn default() -> FakeInstantCtx
Returns the “default value” for a type. Read more
source§impl InstantBindingsTypes for FakeInstantCtx
impl InstantBindingsTypes for FakeInstantCtx
§type Instant = FakeInstant
type Instant = FakeInstant
The type of an instant in time. Read more
source§impl InstantContext for FakeInstantCtx
impl InstantContext for FakeInstantCtx
source§fn now(&self) -> FakeInstant
fn now(&self) -> FakeInstant
Returns the current instant. Read more
Auto Trait Implementations§
impl Freeze for FakeInstantCtx
impl RefUnwindSafe for FakeInstantCtx
impl Send for FakeInstantCtx
impl Sync for FakeInstantCtx
impl Unpin for FakeInstantCtx
impl UnwindSafe for FakeInstantCtx
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