netstack3_base

Trait ReceivableFrameMeta

Source
pub trait ReceivableFrameMeta<CC, BC> {
    // Required method
    fn receive_meta<B: BufferMut + Debug>(
        self,
        core_ctx: &mut CC,
        bindings_ctx: &mut BC,
        frame: B,
    );
}
Expand description

A trait providing the receive implementation for some frame identified by a metadata type.

This trait sidesteps orphan rules by allowing RecvFrameContext to be implemented by the multiple core crates, given it can always be implemented for a local metadata type. ReceivableFrameMeta should always be used for trait implementations, while RecvFrameContext is used for trait bounds.

Required Methods§

Source

fn receive_meta<B: BufferMut + Debug>( self, core_ctx: &mut CC, bindings_ctx: &mut BC, frame: B, )

Receives this frame using the provided contexts.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<CC, BC> ReceivableFrameMeta<CC, BC> for Infallible

Source§

fn receive_meta<B: BufferMut + Debug>( self, _core_ctx: &mut CC, _bindings_ctx: &mut BC, _frame: B, )

Implementors§