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: StringThe primary name
description: StringThe human readable description string
load: LoadStateThe load state (i.e. whether the unit file has been loaded successfully)
active: ActiveStateThe active state (i.e. whether the unit is currently started or not)
sub_state: SubStateThe 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: StringA unit that is being followed in its state by this unit, if there is any, otherwise the empty string.
path: OwnedObjectPathThe unit object path
queued_job: u32If there is a job queued for the job unit, the numeric job id, 0 otherwise
job_type: StringThe job type as string
job_path: OwnedObjectPathThe 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.