Skip to main content

TransmitQueueCommon

Trait TransmitQueueCommon 

Source
pub trait TransmitQueueCommon<D: Device, C>: DeviceIdContext<D> {
    type Meta;
    type DequeueContext;

    // Required method
    fn parse_outgoing_frame<'a, 'b>(
        buf: &'a [u8],
        meta: &'a Self::Meta,
    ) -> Result<SentFrame<&'a [u8]>, ParseSentFrameError>;
}
Expand description

Basic definitions for a transmit queue.

Required Associated Types§

Source

type Meta

The metadata associated with every packet in the queue.

Source

type DequeueContext

The context given to send_frame when dequeueing.

Required Methods§

Source

fn parse_outgoing_frame<'a, 'b>( buf: &'a [u8], meta: &'a Self::Meta, ) -> Result<SentFrame<&'a [u8]>, ParseSentFrameError>

Parses an outgoing frame for packet socket delivery.

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.

Implementors§