pub struct ReadyStatus { /* private fields */ }Expand description
Ready status representation.
This struct holds the daemon readiness state derived from bootstrap completion. Readiness is a deterministic boolean plus a stable reason string, derived only from bootstrap state without any IO or polling.
Implementations§
Source§impl ReadyStatus
impl ReadyStatus
Sourcepub const REASON_READY: &'static str = "ready"
pub const REASON_READY: &'static str = "ready"
The daemon is fully operational.
Sourcepub const REASON_CONFIG_INVALID: &'static str = "config_invalid"
pub const REASON_CONFIG_INVALID: &'static str = "config_invalid"
Configuration was invalid during bootstrap.
Sourcepub const REASON_BOOTSTRAP_INCOMPLETE: &'static str = "bootstrap_incomplete"
pub const REASON_BOOTSTRAP_INCOMPLETE: &'static str = "bootstrap_incomplete"
Bootstrap process was incomplete.
Sourcepub const fn ready() -> Self
pub const fn ready() -> Self
Returns a ready status indicating the daemon is fully operational.
Sourcepub const fn not_ready(reason: &'static str) -> Self
pub const fn not_ready(reason: &'static str) -> Self
Returns a not-ready status with the given reason string.
Valid reasons are the documented static constants on ReadyStatus:
Trait Implementations§
Source§impl Clone for ReadyStatus
impl Clone for ReadyStatus
Source§fn clone(&self) -> ReadyStatus
fn clone(&self) -> ReadyStatus
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 ReadyStatus
impl Debug for ReadyStatus
Source§impl PartialEq for ReadyStatus
impl PartialEq for ReadyStatus
impl Copy for ReadyStatus
impl Eq for ReadyStatus
impl StructuralPartialEq for ReadyStatus
Auto Trait Implementations§
impl Freeze for ReadyStatus
impl RefUnwindSafe for ReadyStatus
impl Send for ReadyStatus
impl Sync for ReadyStatus
impl Unpin for ReadyStatus
impl UnsafeUnpin for ReadyStatus
impl UnwindSafe for ReadyStatus
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