Trait netstack3_base::SendableFrameMeta

source ·
pub trait SendableFrameMeta<CC, BC> {
    // Required method
    fn send_meta<S>(
        self,
        core_ctx: &mut CC,
        bindings_ctx: &mut BC,
        frame: S,
    ) -> Result<(), SendFrameError<S>>
       where S: Serializer,
             S::Buffer: BufferMut;
}
Expand description

A trait providing the send implementation for some frame identified by a metadata type.

This trait sidesteps orphan rules by allowing SendFrameContext to be implemented by the multiple core crates, given it can always be implemented for a local metadata type. SendableFrameMeta should always be used for trait implementations, while SendFrameContext is used for trait bounds.

Required Methods§

source

fn send_meta<S>( self, core_ctx: &mut CC, bindings_ctx: &mut BC, frame: S, ) -> Result<(), SendFrameError<S>>
where S: Serializer, S::Buffer: BufferMut,

Sends this frame metadata to the provided contexts.

Object Safety§

This trait is not object safe.

Implementors§