netstack3_device::queue

Trait TransmitQueueHandler

Source
pub trait TransmitQueueHandler<D: Device, BC>: TransmitQueueCommon<D, BC> {
    // Required method
    fn queue_tx_frame<S>(
        &mut self,
        bindings_ctx: &mut BC,
        device_id: &Self::DeviceId,
        meta: Self::Meta,
        body: S,
    ) -> Result<(), TransmitQueueFrameError<S>>
       where S: Serializer,
             S::Buffer: ReusableBuffer;
}
Expand description

An implementation of a transmit queue that stores egress frames.

Required Methods§

Source

fn queue_tx_frame<S>( &mut self, bindings_ctx: &mut BC, device_id: &Self::DeviceId, meta: Self::Meta, body: S, ) -> Result<(), TransmitQueueFrameError<S>>
where S: Serializer, S::Buffer: ReusableBuffer,

Queues a frame for transmission.

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§

Source§

impl<D: Device, BC: TransmitQueueBindingsContext<CC::DeviceId>, CC: TransmitQueueContext<D, BC> + DeviceSocketHandler<D, BC>> TransmitQueueHandler<D, BC> for CC
where for<'a> &'a mut CC::Allocator: BufferAlloc<CC::Buffer>, CC::Buffer: ReusableBuffer,