Trait netstack3_base::SendFrameContext
source · pub trait SendFrameContext<BC, Meta> {
// Required method
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), SendFrameError<S>>
where S: Serializer,
S::Buffer: BufferMut;
}
Expand description
A context for sending frames.
Required Methods§
sourcefn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), SendFrameError<S>>where
S: Serializer,
S::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), SendFrameError<S>>where
S: Serializer,
S::Buffer: BufferMut,
Send a frame.
send_frame
sends a frame with the given metadata. The frame itself is
passed as a Serializer
which send_frame
is responsible for
serializing. If serialization fails for any reason, the original,
unmodified Serializer
is returned.
Object Safety§
This trait is not object safe.