Struct UnitStatus
pub struct UnitStatus {
pub name: String,
pub description: String,
pub load_state: LoadState,
pub active_state: ActiveState,
pub sub_state: String,
pub following: String,
pub unit_path: OwnedObjectPath,
pub job_id: u32,
pub job_type: JobType,
pub job_path: OwnedObjectPath,
}Expand description
A loaded unit in the result of the ListUnits family of methods.
One unit can have several names. This entry has the primary name.
Fields§
§name: StringThe primary unit name.
description: StringThe human-readable description.
load_state: LoadStateWhether the configuration is loaded.
active_state: ActiveStateThe high-level state of the unit.
sub_state: StringThe finer state that depends on the unit type.
following: StringThe unit whose state this unit follows, or an empty string.
unit_path: OwnedObjectPathThe object path of the unit.
job_id: u32The ID of the queued job, or 0 if there is none.
job_type: JobTypeThe type of the queued job, or JobType::Unset.
job_path: OwnedObjectPathThe object path of the queued job, or / if there is none.
Trait Implementations§
§impl Clone for UnitStatus
impl Clone for UnitStatus
§fn clone(&self) -> UnitStatus
fn clone(&self) -> UnitStatus
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 more§impl Debug for UnitStatus
impl Debug for UnitStatus
§impl<'de> Deserialize<'de> for UnitStatus
impl<'de> Deserialize<'de> for UnitStatus
§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
impl Eq for UnitStatus
§impl PartialEq for UnitStatus
impl PartialEq for UnitStatus
§impl Serialize for UnitStatus
impl Serialize for UnitStatus
impl StructuralPartialEq for UnitStatus
§impl Type for UnitStatus
impl Type for UnitStatus
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.