Trait netstack3_device::queue::TransmitQueueCommon

source ·
pub trait TransmitQueueCommon<D: Device, C>: DeviceIdContext<D> {
    type Meta;
    type Allocator;
    type Buffer: GrowBufferMut + ContiguousBuffer;
    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 Allocator

An allocator of Self::Buffer.

source

type Buffer: GrowBufferMut + ContiguousBuffer

The buffer type stored 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.

Object Safety§

This trait is not object safe.

Implementors§