[][src]Trait ethox::nic::Send

pub trait Send<H: Handle + ?Sized, P: Payload + ?Sized> {
    fn send(&mut self, packet: Packet<H, P>);

    fn sendv<'a>(&mut self, packets: impl IntoIterator<Item = Packet<'a, H, P>>)
    where
        P: 'a,
        H: 'a
, { ... } }

A raw network packet sender.

Required methods

fn send(&mut self, packet: Packet<H, P>)

Fill a single packet for sending.

Loading content...

Provided methods

fn sendv<'a>(&mut self, packets: impl IntoIterator<Item = Packet<'a, H, P>>) where
    P: 'a,
    H: 'a, 

Vectored sending.

The default implementation will simply send all packets in sequence.

Loading content...

Implementors

impl<'_, '_, H, P, T> Send<H, P> for Sender<'_, '_, T> where
    H: Handle,
    P: Payload + PayloadMut,
    T: Send<P>, 
[src]

impl<'_, F, H: Handle + ?Sized, P: Payload + ?Sized> Send<H, P> for &'_ mut F where
    F: Send<H, P>, 
[src]

impl<'_, H: ?Sized, P: ?Sized, I> Send<H, P> for Lossy<'_, I> where
    H: Handle,
    P: Payload,
    I: Send<LossyHandle<H>, P>, 
[src]

impl<F, H: Handle + ?Sized, P: Payload + ?Sized> Send<H, P> for FnHandler<F> where
    F: FnMut(Packet<H, P>), 
[src]

Loading content...