pub struct Unit {
pub name: String,
pub description: String,
pub load: LoadState,
pub active: ActiveState,
pub sub_state: SubState,
pub followed_unit: String,
pub path: OwnedObjectPath,
pub queued_job: u32,
pub job_type: String,
pub job_path: OwnedObjectPath,
}
Fields§
§name: String
The primary name
description: String
The human readable description string
load: LoadState
The load state (i.e. whether the unit file has been loaded successfully)
active: ActiveState
The active state (i.e. whether the unit is currently started or not)
sub_state: SubState
The sub state (a more fine-grained version of the active state that is specific to the unit type, which the active state is not)
followed_unit: String
A unit that is being followed in its state by this unit, if there is any, otherwise the empty string.
path: OwnedObjectPath
The unit object path
queued_job: u32
If there is a job queued for the job unit, the numeric job id, 0 otherwise
job_type: String
The job type as string
job_path: OwnedObjectPath
The job object path
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Unit
impl<'de> Deserialize<'de> for Unit
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
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
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,
Source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§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.