pub struct BootstrapNodeMetrics {
pub address: SocketAddr,
pub coordination_requests: u64,
pub successful_coordinations: u64,
pub avg_response_time_ms: f64,
pub availability: f64,
pub last_contact: Option<SystemTime>,
pub error_rate: f64,
}Expand description
Bootstrap node performance metrics
Fields§
§address: SocketAddrNode address
coordination_requests: u64Total coordination requests handled
successful_coordinations: u64Successful coordinations
avg_response_time_ms: f64Average response time
availability: f64Current availability (0.0 to 1.0)
last_contact: Option<SystemTime>Last successful contact
error_rate: f64Error rate in last hour
Trait Implementations§
Source§impl Clone for BootstrapNodeMetrics
impl Clone for BootstrapNodeMetrics
Source§fn clone(&self) -> BootstrapNodeMetrics
fn clone(&self) -> BootstrapNodeMetrics
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 moreAuto Trait Implementations§
impl Freeze for BootstrapNodeMetrics
impl RefUnwindSafe for BootstrapNodeMetrics
impl Send for BootstrapNodeMetrics
impl Sync for BootstrapNodeMetrics
impl Unpin for BootstrapNodeMetrics
impl UnwindSafe for BootstrapNodeMetrics
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