Trait packet::Packet
[−]
[src]
pub trait Packet { fn split(&self) -> (&[u8], &[u8]); fn header(&self) -> &[u8] { ... } fn payload(&self) -> &[u8] { ... } }
A network packet.
Required Methods
Provided Methods
fn header(&self) -> &[u8]
Return a slice to the packet header.
fn payload(&self) -> &[u8]
Return a slice to the packet payload.
Implementors
impl<B: AsRef<[u8]>> P for packet::ether::Packet<B>
impl<B: AsRef<[u8]>> P for packet::ip::Packet<B>
impl<B: AsRef<[u8]>> P for packet::ip::v4::option::Option<B>
impl<B: AsRef<[u8]>> P for packet::ip::v4::Packet<B>
impl<B: AsRef<[u8]>> P for packet::ip::v6::Packet<B>
impl<B: AsRef<[u8]>> P for packet::icmp::Packet<B>
impl<B: AsRef<[u8]>> P for packet::icmp::echo::Packet<B>
impl<B: AsRef<[u8]>> P for packet::icmp::information::Packet<B>
impl<B: AsRef<[u8]>> P for packet::icmp::parameter_problem::Packet<B>
impl<B: AsRef<[u8]>> P for packet::icmp::previous::Packet<B>
impl<B: AsRef<[u8]>> P for packet::icmp::redirect_message::Packet<B>
impl<B: AsRef<[u8]>> P for packet::icmp::timestamp::Packet<B>
impl<B: AsRef<[u8]>> P for packet::tcp::option::Option<B>
impl<B: AsRef<[u8]>> P for packet::tcp::Packet<B>
impl<B: AsRef<[u8]>> P for packet::udp::Packet<B>