Trait netstack3_core::testutil::context::WithFakeFrameContext
source · pub trait WithFakeFrameContext<SendMeta> {
// Required method
fn with_fake_frame_ctx_mut<O, F>(&mut self, f: F) -> O
where F: FnOnce(&mut FakeFrameCtx<SendMeta>) -> O;
}
Expand description
A trait for abstracting contexts that may contain a FakeFrameCtx
.
Required Methods§
sourcefn with_fake_frame_ctx_mut<O, F>(&mut self, f: F) -> Owhere
F: FnOnce(&mut FakeFrameCtx<SendMeta>) -> O,
fn with_fake_frame_ctx_mut<O, F>(&mut self, f: F) -> Owhere
F: FnOnce(&mut FakeFrameCtx<SendMeta>) -> O,
Calls the callback with a mutable reference to the FakeFrameCtx
.
Object Safety§
This trait is not object safe.