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§
Sourcefn receive_frame<B: BufferMut + Debug>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: B,
)
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.