Struct monitord::units::UnitStates
source · pub struct UnitStates {
pub active_state: SystemdUnitActiveState,
pub load_state: SystemdUnitLoadState,
pub unhealthy: bool,
}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: boolImplementations§
source§impl UnitStates
impl UnitStates
sourcepub const FIELD_NAMES_AS_ARRAY: &'static [&'static str] = _
pub const FIELD_NAMES_AS_ARRAY: &'static [&'static str] = _
Generated array of field names for UnitStates.
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 PartialEq<UnitStates> for UnitStates
impl PartialEq<UnitStates> for UnitStates
source§fn eq(&self, other: &UnitStates) -> bool
fn eq(&self, other: &UnitStates) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for UnitStates
impl Serialize for UnitStates
impl Eq for UnitStates
impl StructuralEq for UnitStates
impl StructuralPartialEq for UnitStates
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.