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.
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.