netstack3_base

Trait RecvFrameContext

Source
pub trait RecvFrameContext<Meta, BC> {
    // Required method
    fn receive_frame<B: BufferMut + Debug>(
        &mut self,
        bindings_ctx: &mut BC,
        metadata: Meta,
        frame: B,
    );
}
Expand description

A context for receiving frames.

Note: Use this trait as trait bounds, but always implement ReceivableFrameMeta instead, which generates a RecvFrameContext implementation.

Required Methods§

Source

fn receive_frame<B: BufferMut + Debug>( &mut self, bindings_ctx: &mut BC, metadata: Meta, frame: B, )

Receive a frame.

receive_frame receives a frame with the given metadata.

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.

Implementors§

Source§

impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CC
where Meta: ReceivableFrameMeta<CC, BC>,