pub struct PoolServer {
pub url: String,
pub health: ServerHealth,
pub consecutive_failures: i32,
pub last_success: Tstamp,
pub last_failure: Tstamp,
}Expand description
PoolServer is a snapshot of a single server’s state in the LogServerPool.
Fields§
§url: StringThe web:// URL of the log server.
health: ServerHealthCurrent health status.
consecutive_failures: i32Number of consecutive request failures since the last success.
last_success: TstampTimestamp of the most recent successful request (nanoseconds since epoch).
last_failure: TstampTimestamp of the most recent failed request (nanoseconds since epoch).
Trait Implementations§
Source§impl Clone for PoolServer
impl Clone for PoolServer
Source§fn clone(&self) -> PoolServer
fn clone(&self) -> PoolServer
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 PoolServer
impl RefUnwindSafe for PoolServer
impl Send for PoolServer
impl Sync for PoolServer
impl Unpin for PoolServer
impl UnsafeUnpin for PoolServer
impl UnwindSafe for PoolServer
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