Trait netstack3_base::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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