pub struct RemoteMetrics { /* private fields */ }Implementations§
Source§impl RemoteMetrics
impl RemoteMetrics
pub fn new() -> Self
pub fn record_send(&self, address: &Address, bytes: usize)
pub fn record_receive(&self, address: &Address, bytes: usize)
pub fn record_error(&self, address: &Address)
pub fn snapshot(&self) -> RemoteMetricsSnapshot
Trait Implementations§
Source§impl Clone for RemoteMetrics
impl Clone for RemoteMetrics
Source§fn clone(&self) -> RemoteMetrics
fn clone(&self) -> RemoteMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for RemoteMetrics
impl Default for RemoteMetrics
Source§fn default() -> RemoteMetrics
fn default() -> RemoteMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RemoteMetrics
impl !RefUnwindSafe for RemoteMetrics
impl Send for RemoteMetrics
impl Sync for RemoteMetrics
impl Unpin for RemoteMetrics
impl UnsafeUnpin for RemoteMetrics
impl !UnwindSafe for RemoteMetrics
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