pub enum SystemdState {
Running,
Degraded,
Starting,
Unavailable(String),
}Expand description
What systemctl is-system-running said.
Variants§
Running
Fully up.
Degraded
Up, with at least one failed unit. Usable: the product’s own unit is
what matters, and service status reports it separately.
Starting
Still coming up. Usable for the same reason, and the alternative — refusing during the first seconds after a cold start — would make the preflight flaky rather than strict.
Not systemd, or systemd is not the init here. Refused.
Implementations§
Source§impl SystemdState
impl SystemdState
Trait Implementations§
Source§impl Clone for SystemdState
impl Clone for SystemdState
Source§fn clone(&self) -> SystemdState
fn clone(&self) -> SystemdState
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 moreSource§impl Debug for SystemdState
impl Debug for SystemdState
Source§impl Display for SystemdState
impl Display for SystemdState
impl Eq for SystemdState
Source§impl PartialEq for SystemdState
impl PartialEq for SystemdState
impl StructuralPartialEq for SystemdState
Auto Trait Implementations§
impl Freeze for SystemdState
impl RefUnwindSafe for SystemdState
impl Send for SystemdState
impl Sync for SystemdState
impl Unpin for SystemdState
impl UnsafeUnpin for SystemdState
impl UnwindSafe for SystemdState
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