Trait libpacket_core::FromPacket [−][src]
pub trait FromPacket: Packet { type T; fn from_packet(&self) -> Self::T; }
Expand description
Used to convert on-the-wire packets to their #[packet] equivalent.
Associated Types
Required methods
fn from_packet(&self) -> Self::T
[src]
Expand description
Converts a wire-format packet to #[packet] struct format.