Enum smoltcp::wire::Icmpv4Repr [−][src]
#[non_exhaustive]
pub enum Icmpv4Repr<'a> {
EchoRequest {
ident: u16,
seq_no: u16,
data: &'a [u8],
},
EchoReply {
ident: u16,
seq_no: u16,
data: &'a [u8],
},
DstUnreachable {
reason: DstUnreachable,
header: Ipv4Repr,
data: &'a [u8],
},
}
Expand description
A high-level representation of an Internet Control Message Protocol version 4 packet header.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EchoRequest
EchoReply
DstUnreachable
Implementations
Parse an Internet Control Message Protocol version 4 packet and return a high-level representation.
Return the length of a packet that will be emitted from this high-level representation.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Repr<'a>
impl<'a> UnwindSafe for Repr<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more