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.

Object Safety§

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§