pub struct UnitStatus {
pub load_state: String,
pub active_state: String,
pub sub_state: String,
pub load_error: String,
pub need_daemon_reload: bool,
}Expand description
Parsed status of a systemd unit.
Fields§
§load_state: String§active_state: String§sub_state: String§load_error: String§need_daemon_reload: boolTrait Implementations§
Source§impl Debug for UnitStatus
impl Debug for UnitStatus
Source§impl Default for UnitStatus
impl Default for UnitStatus
Source§fn default() -> UnitStatus
fn default() -> UnitStatus
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnitStatus
impl RefUnwindSafe for UnitStatus
impl Send for UnitStatus
impl Sync for UnitStatus
impl Unpin for UnitStatus
impl UnsafeUnpin for UnitStatus
impl UnwindSafe for UnitStatus
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more