pub struct HealthStatus {
pub aur_api: ServiceStatus,
pub latency: Option<Duration>,
pub checked_at: Instant,
}Expand description
What: Health status for archlinux.org services.
Inputs: None (created by health check operations)
Output: Struct containing service status and latency information
Details:
- Provides detailed health information for connection status UIs
- Includes latency measurements for performance monitoring
Fields§
§aur_api: ServiceStatusWhether the AUR RPC API is reachable.
latency: Option<Duration>Measured latency to the AUR API (if reachable).
checked_at: InstantTimestamp when health check was performed.
Implementations§
Source§impl HealthStatus
impl HealthStatus
Sourcepub const fn is_healthy(&self) -> bool
pub const fn is_healthy(&self) -> bool
What: Check if all services are healthy.
Inputs: None
Output:
trueif all services are operational,falseotherwise
Details:
- Delegates to
ServiceStatus::is_operational()for the AUR API
Trait Implementations§
Source§impl Clone for HealthStatus
impl Clone for HealthStatus
Source§fn clone(&self) -> HealthStatus
fn clone(&self) -> HealthStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HealthStatus
impl RefUnwindSafe for HealthStatus
impl Send for HealthStatus
impl Sync for HealthStatus
impl Unpin for HealthStatus
impl UnsafeUnpin for HealthStatus
impl UnwindSafe for HealthStatus
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