Skip to main content

InnerFakeIpSocketCtx

Trait InnerFakeIpSocketCtx 

Source
pub trait InnerFakeIpSocketCtx<I: Ip, D> {
    // Required method
    fn fake_ip_socket_ctx_mut(&mut self) -> &mut FakeIpSocketCtx<I, D>;
}
Expand description

A trait enabling [FakeIpSockeCtx]’s implementations for FakeCoreCtx with types that hold a FakeIpSocketCtx internally,

Required Methods§

Source

fn fake_ip_socket_ctx_mut(&mut self) -> &mut FakeIpSocketCtx<I, D>

Gets a mutable reference to the inner fake context.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<I: Ip, D, State: InnerFakeIpSocketCtx<I, D>, Meta> InnerFakeIpSocketCtx<I, D> for FakeCoreCtx<State, Meta, D>

Implementors§