Trait netstack3_base::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§
sourcefn receive_meta<B: BufferMut + Debug>(
self,
core_ctx: &mut CC,
bindings_ctx: &mut BC,
frame: B
)
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.