#[repr(C)]pub(crate) struct PingRequest {
pub(crate) seq: u16,
pub(crate) timestamp_ns: u64,
pub(crate) payload: [u8; 40],
}Expand description
ICMP echo request/reply payload passed through the /net/ping/<ip> scheme.
Write: seq(u16 LE) + timestamp_ns(u64 LE) + padding(40 bytes) = 50 bytes Read: seq(u16 LE) + rtt_us(u64 LE) = 10 bytes
Fields§
§seq: u16§timestamp_ns: u64§payload: [u8; 40]Auto Trait Implementations§
impl Freeze for PingRequest
impl RefUnwindSafe for PingRequest
impl Send for PingRequest
impl Sync for PingRequest
impl Unpin for PingRequest
impl UnsafeUnpin for PingRequest
impl UnwindSafe for PingRequest
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