pub trait TransmitQueueCommon<D: Device, C>: DeviceIdContext<D> {
type Meta: TxQueuePacketMetadataCommon;
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 Meta: TxQueuePacketMetadataCommon
type Meta: TxQueuePacketMetadataCommon
The metadata associated with every packet in the queue.
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".