struct PingStats {
sent: u16,
latest: u16,
seen_in_time: u16,
repeats_in_time: u16,
late: u16,
}
ping
only.Fields§
§sent: u16
Number of requets sent (which is the precise number of ticks received)
latest: u16
16-bit bit field indicating for which request a response has been seen. The least significant bit represents whether the latest packet has been received, higher bits indicate older packets.
(If we wanted to measure time in ticks or any other unit of time, this’d become an array of Option<send_timestamp>).
seen_in_time: u16
Number of responses received in time (ie. before going out of latest
)
repeats_in_time: u16
Number of responses received in time to be counted again after already having been seen
late: u16
Number of responses received after going out of latest
(may be initials if there was any
packet loss, may be duplicates)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PingStats
impl RefUnwindSafe for PingStats
impl Send for PingStats
impl Sync for PingStats
impl Unpin for PingStats
impl UnwindSafe for PingStats
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
Source§impl<T> IntoSwitch for T
impl<T> IntoSwitch for T
Source§fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
Source§fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 10 bytes