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.
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.