Struct xenet_packet::icmp::Icmp
source · pub struct Icmp {
pub icmp_type: IcmpType,
pub icmp_code: IcmpCode,
pub checksum: u16be,
pub payload: Vec<u8>,
}
Expand description
Represents a generic ICMP packet.
Fields§
§icmp_type: IcmpType
§icmp_code: IcmpCode
§checksum: u16be
§payload: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Icmp
impl Send for Icmp
impl Sync for Icmp
impl Unpin 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