pub enum Icmpv4 {
EchoReply(PayloadLengthDelimitedEchoReply),
Other(IcmpType, IcmpCode, Payload),
}Variants§
Implementations§
Source§impl Icmpv4
impl Icmpv4
pub fn parse_from_packet_bytes(bytes: &[u8]) -> Result<Option<Self>, ParseError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Icmpv4
impl RefUnwindSafe for Icmpv4
impl Send for Icmpv4
impl Sync for Icmpv4
impl Unpin for Icmpv4
impl UnwindSafe for Icmpv4
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