pub struct RouteStatus {
pub key: String,
pub listen: SocketAddr,
pub backends: Vec<BackendStatus>,
pub draining: Vec<BackendStatus>,
pub accepted: u64,
pub failures: u64,
pub rejected: u64,
}Expand description
What Balancer::routes reports for one route.
Fields§
§key: String§listen: SocketAddrThe bound address (the real port when the route asked for port 0).
backends: Vec<BackendStatus>§draining: Vec<BackendStatus>Backends removed from the route that still have open connections.
accepted: u64Connections accepted since the route was created.
failures: u64Clients closed because no backend could be reached.
rejected: u64Clients closed because the route was at MAX_CONNS_PER_ROUTE.
Trait Implementations§
Source§impl Clone for RouteStatus
impl Clone for RouteStatus
Source§impl Debug for RouteStatus
impl Debug for RouteStatus
impl Eq for RouteStatus
Source§impl PartialEq for RouteStatus
impl PartialEq for RouteStatus
impl StructuralPartialEq for RouteStatus
Auto Trait Implementations§
impl Freeze for RouteStatus
impl RefUnwindSafe for RouteStatus
impl Send for RouteStatus
impl Sync for RouteStatus
impl Unpin for RouteStatus
impl UnsafeUnpin for RouteStatus
impl UnwindSafe for RouteStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.