Struct netstack3_base::testutil::FakeFrameCtx
source · pub struct FakeFrameCtx<Meta> { /* private fields */ }
Expand description
A fake [FrameContext
].
Implementations§
source§impl<Meta> FakeFrameCtx<Meta>
impl<Meta> FakeFrameCtx<Meta>
Trait Implementations§
source§impl<Meta> Default for FakeFrameCtx<Meta>
impl<Meta> Default for FakeFrameCtx<Meta>
source§fn default() -> FakeFrameCtx<Meta>
fn default() -> FakeFrameCtx<Meta>
Returns the “default value” for a type. Read more
source§impl<SendMeta> WithFakeFrameContext<SendMeta> for FakeFrameCtx<SendMeta>
impl<SendMeta> WithFakeFrameContext<SendMeta> for FakeFrameCtx<SendMeta>
source§fn with_fake_frame_ctx_mut<O, F: FnOnce(&mut FakeFrameCtx<SendMeta>) -> O>(
&mut self,
f: F
) -> O
fn with_fake_frame_ctx_mut<O, F: FnOnce(&mut FakeFrameCtx<SendMeta>) -> O>( &mut self, f: F ) -> O
Calls the callback with a mutable reference to the
FakeFrameCtx
.Auto Trait Implementations§
impl<Meta> Freeze for FakeFrameCtx<Meta>
impl<Meta> !RefUnwindSafe for FakeFrameCtx<Meta>
impl<Meta> Send for FakeFrameCtx<Meta>where
Meta: Send,
impl<Meta> !Sync for FakeFrameCtx<Meta>
impl<Meta> Unpin for FakeFrameCtx<Meta>where
Meta: Unpin,
impl<Meta> !UnwindSafe for FakeFrameCtx<Meta>
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
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.