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§
sourcetype Allocator
type Allocator
An allocator of Self::Buffer
.
sourcetype DequeueContext
type DequeueContext
The context given to send_frame
when dequeueing.
Required Methods§
sourcefn parse_outgoing_frame<'a, 'b>(
buf: &'a [u8],
meta: &'a Self::Meta,
) -> Result<SentFrame<&'a [u8]>, ParseSentFrameError>
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.