Trait netstack3_device::queue::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.

Object Safety§

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,