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