#[non_exhaustive]pub struct EventStats {
pub messages: u64,
pub acknowledged: u64,
pub retransmissions: u64,
pub events: u64,
pub dropped: u64,
pub malformed: u64,
}Expand description
What a GVCP message channel has received, counted by its receive thread.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.messages: u64Datagrams that parsed as EVENT_CMD or EVENTDATA_CMD, copies
included.
acknowledged: u64Messages that asked for an acknowledgement and were sent one.
retransmissions: u64Copies of the message before them, the device’s retransmissions: acknowledged again, their events not queued twice.
events: u64Events queued for the application.
dropped: u64Events dropped, oldest first, because the application left
EVENT_QUEUE_CAPACITY of them unread.
malformed: u64Datagrams that were not an event message.
Trait Implementations§
Source§impl Clone for EventStats
impl Clone for EventStats
impl Copy for EventStats
Source§impl Debug for EventStats
impl Debug for EventStats
Source§impl Default for EventStats
impl Default for EventStats
impl Eq for EventStats
Source§impl PartialEq for EventStats
impl PartialEq for EventStats
impl StructuralPartialEq for EventStats
Auto Trait Implementations§
impl Freeze for EventStats
impl RefUnwindSafe for EventStats
impl Send for EventStats
impl Sync for EventStats
impl Unpin for EventStats
impl UnsafeUnpin for EventStats
impl UnwindSafe for EventStats
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