pub struct CommunicationStats {
pub messages_sent: u64,
pub messages_received: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
pub errors: u64,
pub timeouts: u64,
pub retries: u64,
pub acks_received: u64,
pub naks_received: u64,
pub rejects_received: u64,
pub aborts_received: u64,
}Expand description
BACnet communication statistics
Fields§
§messages_sent: u64§messages_received: u64§bytes_sent: u64§bytes_received: u64§errors: u64§timeouts: u64§retries: u64§acks_received: u64§naks_received: u64§rejects_received: u64§aborts_received: u64Implementations§
Source§impl CommunicationStats
impl CommunicationStats
Sourcepub fn record_sent(&mut self, bytes: usize)
pub fn record_sent(&mut self, bytes: usize)
Record a sent message
Sourcepub fn record_received(&mut self, bytes: usize)
pub fn record_received(&mut self, bytes: usize)
Record a received message
Sourcepub fn record_error(&mut self)
pub fn record_error(&mut self)
Record an error
Sourcepub fn record_timeout(&mut self)
pub fn record_timeout(&mut self)
Record a timeout
Sourcepub fn record_retry(&mut self)
pub fn record_retry(&mut self)
Record a retry
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate percentage
Trait Implementations§
Source§impl Clone for CommunicationStats
impl Clone for CommunicationStats
Source§fn clone(&self) -> CommunicationStats
fn clone(&self) -> CommunicationStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommunicationStats
impl Debug for CommunicationStats
Source§impl Default for CommunicationStats
impl Default for CommunicationStats
Source§fn default() -> CommunicationStats
fn default() -> CommunicationStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommunicationStats
impl RefUnwindSafe for CommunicationStats
impl Send for CommunicationStats
impl Sync for CommunicationStats
impl Unpin for CommunicationStats
impl UnsafeUnpin for CommunicationStats
impl UnwindSafe for CommunicationStats
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