pub struct Icmp {
pub typ: u8,
pub code: u8,
pub chksum: u16,
pub payload: Vec<u8>,
}Expand description
ICMP frame of a packet.
Fields§
§typ: u8§code: u8§chksum: u16§payload: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Icmp
impl RefUnwindSafe for Icmp
impl Send for Icmp
impl Sync for Icmp
impl Unpin for Icmp
impl UnsafeUnpin for Icmp
impl UnwindSafe for Icmp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more