pub struct UnitStates {
pub active_state: SystemdUnitActiveState,
pub load_state: SystemdUnitLoadState,
pub unhealthy: bool,
pub time_in_state_usecs: Option<u64>,
}
Expand description
Collection of a Unit active and load state: https://www.freedesktop.org/software/systemd/man/org.freedesktop.systemd1.html
Fields§
§active_state: SystemdUnitActiveState
§load_state: SystemdUnitLoadState
§unhealthy: bool
§time_in_state_usecs: Option<u64>
Trait Implementations§
Source§impl Clone for UnitStates
impl Clone for UnitStates
Source§fn clone(&self) -> UnitStates
fn clone(&self) -> UnitStates
Returns a copy 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 UnitStates
impl Debug for UnitStates
Source§impl Default for UnitStates
impl Default for UnitStates
Source§fn default() -> UnitStates
fn default() -> UnitStates
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnitStates
impl<'de> Deserialize<'de> for UnitStates
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FieldNamesAsArray<4> for UnitStates
impl FieldNamesAsArray<4> for UnitStates
Source§const FIELD_NAMES_AS_ARRAY: [&'static str; 4]
const FIELD_NAMES_AS_ARRAY: [&'static str; 4]
Generated array of field names for UnitStates
.
Source§impl PartialEq for UnitStates
impl PartialEq for UnitStates
Source§impl Serialize for UnitStates
impl Serialize for UnitStates
impl Eq for UnitStates
impl StructuralPartialEq for UnitStates
Auto Trait Implementations§
impl Freeze for UnitStates
impl RefUnwindSafe for UnitStates
impl Send for UnitStates
impl Sync for UnitStates
impl Unpin for UnitStates
impl UnwindSafe for UnitStates
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.