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
👎Deprecated since 0.14.0: Use TimestampMessage::LEN
instead
pub const SERIALIZED_SIZE: usize = 20usize
TimestampMessage::LEN
insteadDeprecated use TimestampMessage::LEN
instead.
sourcepub const LEN: usize = 20usize
pub const LEN: 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 moresource§impl Debug for TimestampMessage
impl Debug for TimestampMessage
source§impl PartialEq for TimestampMessage
impl PartialEq for TimestampMessage
impl Eq for TimestampMessage
impl StructuralPartialEq for TimestampMessage
Auto Trait Implementations§
impl Freeze for TimestampMessage
impl RefUnwindSafe for TimestampMessage
impl Send for TimestampMessage
impl Sync for TimestampMessage
impl Unpin for TimestampMessage
impl UnwindSafe for TimestampMessage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)