Trait pnet::packet::FromPacket [] [src]

pub trait FromPacket: Packet {
    type T;
    fn from_packet(&self) -> Self::T;
}

Used to convert on-the-wire packets to their #[packet] equivalent

Associated Types

The type of the packet to convert from

Required Methods

Converts a wire-format packet to #[packet] struct format

Implementors