pub struct BackendSnapshot {
pub addr: SocketAddr,
pub healthy: bool,
pub active_connections: u64,
pub consecutive_failures: u64,
}Expand description
Point-in-time snapshot of a single backend’s state.
Fields§
§addr: SocketAddrThe backend’s network address.
healthy: boolWhether the backend is currently healthy.
active_connections: u64Number of in-flight connections.
consecutive_failures: u64Number of consecutive health-check failures.
Trait Implementations§
Source§impl Clone for BackendSnapshot
impl Clone for BackendSnapshot
Source§fn clone(&self) -> BackendSnapshot
fn clone(&self) -> BackendSnapshot
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 BackendSnapshot
impl RefUnwindSafe for BackendSnapshot
impl Send for BackendSnapshot
impl Sync for BackendSnapshot
impl Unpin for BackendSnapshot
impl UnsafeUnpin for BackendSnapshot
impl UnwindSafe for BackendSnapshot
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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