Struct NodeStatistics

Source
pub struct NodeStatistics {
Show 20 fields pub unit_id: u64, pub jumpers: u8, pub test_result: u8, pub version_number: u16, pub stats_period: u16, pub num_crc: u16, pub num_align_errors: u16, pub num_collisions: u16, pub num_send_aborts: u16, pub num_good_sends: u32, pub num_good_recvs: u32, pub num_retransmits: u16, pub num_no_res_conditions: u16, pub num_free_cmd_blocks: u16, pub num_total_cmd_blocks: u16, pub max_total_cmd_blocks: u16, pub num_pending_sessions: u16, pub max_pending_sessions: u16, pub max_total_sessions: u16, pub session_data_packet_size: u16,
}

Fields§

§unit_id: u64§jumpers: u8§test_result: u8§version_number: u16§stats_period: u16§num_crc: u16§num_align_errors: u16§num_collisions: u16§num_send_aborts: u16§num_good_sends: u32§num_good_recvs: u32§num_retransmits: u16§num_no_res_conditions: u16§num_free_cmd_blocks: u16§num_total_cmd_blocks: u16§max_total_cmd_blocks: u16§num_pending_sessions: u16§max_pending_sessions: u16§max_total_sessions: u16§session_data_packet_size: u16

Trait Implementations§

Source§

impl Debug for NodeStatistics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NodeStatistics

Source§

fn default() -> NodeStatistics

Returns the “default value” for a type. Read more
Source§

impl<'nom, NomErr> Parse<&'nom [u8], NomErr> for NodeStatistics
where NomErr: ParseError<&'nom [u8]>,

Source§

fn parse_be(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self, NomErr>

Parse input as Big-Endian
Source§

fn parse_le(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self, NomErr>

Parse input as Little-Endian
Source§

fn parse(orig_i: &'nom [u8]) -> IResult<&'nom [u8], Self, NomErr>

Parse input, not knowing the endianness Read more
Source§

impl PartialEq for NodeStatistics

Source§

fn eq(&self, other: &NodeStatistics) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for NodeStatistics

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.