Struct etherparse::icmpv4::TimestampMessage
source · pub struct TimestampMessage {
pub id: u16,
pub seq: u16,
pub originate_timestamp: u32,
pub receive_timestamp: u32,
pub transmit_timestamp: u32,
}
Expand description
A ICMPv4 timestamp or timestamp response message.
Fields§
§id: u16
§seq: u16
§originate_timestamp: u32
§receive_timestamp: u32
§transmit_timestamp: u32
Implementations§
source§impl TimestampMessage
impl TimestampMessage
sourcepub const SERIALIZED_SIZE: usize = 20usize
pub const SERIALIZED_SIZE: usize = 20usize
The size in bytes/octets of a timestamp request or timestamp response message.
sourcepub fn from_bytes(bytes: [u8; 16]) -> TimestampMessage
pub fn from_bytes(bytes: [u8; 16]) -> TimestampMessage
Decodes the timestamp message part of an ICMPv4 message.
Trait Implementations§
source§impl Clone for TimestampMessage
impl Clone for TimestampMessage
source§fn clone(&self) -> TimestampMessage
fn clone(&self) -> TimestampMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more