pub struct ServiceStatus {
pub connections: usize,
pub inflight: usize,
pub handoff_requested: bool,
pub released: bool,
pub process: Option<ProcessUsage>,
}Expand description
Runtime figures of a running host, computed on call by Hosted::status.
Fields§
§connections: usizeConnections open now.
inflight: usizeRequests being served now (the queue the handoff waits on).
handoff_requested: boolA takeover was accepted and the host is draining.
released: boolThe host has released the service.
process: Option<ProcessUsage>Resident memory, CPU time and I/O counters of the whole process (the host runs in it), or
None when the host cannot report them. See rightkit_child_process::ProcessUsage.
Trait Implementations§
Source§impl Clone for ServiceStatus
impl Clone for ServiceStatus
impl Copy for ServiceStatus
Source§impl Debug for ServiceStatus
impl Debug for ServiceStatus
Source§impl PartialEq for ServiceStatus
impl PartialEq for ServiceStatus
impl StructuralPartialEq for ServiceStatus
Auto Trait Implementations§
impl Freeze for ServiceStatus
impl RefUnwindSafe for ServiceStatus
impl Send for ServiceStatus
impl Sync for ServiceStatus
impl Unpin for ServiceStatus
impl UnsafeUnpin for ServiceStatus
impl UnwindSafe for ServiceStatus
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