Struct smoltcp::wire::Ipv4Repr [−][src]
pub struct Ipv4Repr {
pub src_addr: Address,
pub dst_addr: Address,
pub protocol: Protocol,
pub payload_len: usize,
pub hop_limit: u8,
}
Expand description
A high-level representation of an Internet Protocol version 4 packet header.
Fields
src_addr: Address
dst_addr: Address
protocol: Protocol
payload_len: usize
hop_limit: u8
Implementations
Parse an Internet Protocol version 4 packet and return a high-level representation.
Return the length of a header that will be emitted from this high-level representation.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Repr
impl UnwindSafe for Repr
Blanket Implementations
Mutably borrows from an owned value. Read more