[][src]Trait rawsock::Packet

pub trait Packet: Deref<Target = [u8]> + Display {
    fn when(&self) -> Timespec;
}

Trait for obtained packets - common part between borrowed and owned versions.

Required methods

fn when(&self) -> Timespec

Returns the time when this packet was received.

Loading content...

Implementors

impl Packet for OwnedPacket[src]

impl<'a> Packet for BorrowedPacket<'a>[src]

Loading content...