pub enum ServerHealth {
Healthy,
Unhealthy,
}Expand description
ServerHealth indicates whether a server in the pool is currently considered usable.
Variants§
Healthy
Healthy servers are included in selection by LogServerPool::select.
Unhealthy
Unhealthy servers are skipped until reset_health is called.
Trait Implementations§
Source§impl Clone for ServerHealth
impl Clone for ServerHealth
Source§fn clone(&self) -> ServerHealth
fn clone(&self) -> ServerHealth
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 Debug for ServerHealth
impl Debug for ServerHealth
Source§impl From<u32> for ServerHealth
impl From<u32> for ServerHealth
Source§impl PartialEq for ServerHealth
impl PartialEq for ServerHealth
impl Copy for ServerHealth
impl Eq for ServerHealth
impl StructuralPartialEq for ServerHealth
Auto Trait Implementations§
impl Freeze for ServerHealth
impl RefUnwindSafe for ServerHealth
impl Send for ServerHealth
impl Sync for ServerHealth
impl Unpin for ServerHealth
impl UnsafeUnpin for ServerHealth
impl UnwindSafe for ServerHealth
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