pub struct ServiceInfo {
pub name: String,
pub description: String,
pub load_state: LoadState,
pub active_state: ActiveState,
pub work_state: WorkState,
pub daemon_path: String,
pub job_id: u32,
pub unit_type: UnitType,
}Fields§
§name: StringUnit name (e.g. hibernate.target)
description: StringUnit description (e.g. System Hibernation)
load_state: LoadStateLoad state
active_state: ActiveStateActive state
work_state: WorkStateWork state
daemon_path: StringDaemon path
job_id: u32Job ID
unit_type: UnitTypeUnit type
Trait Implementations§
Source§impl Debug for ServiceInfo
impl Debug for ServiceInfo
Source§impl From<(String, String, String, String, String, String, OwnedObjectPath, u32, String, OwnedObjectPath)> for ServiceInfo
impl From<(String, String, String, String, String, String, OwnedObjectPath, u32, String, OwnedObjectPath)> for ServiceInfo
Source§impl Serialize for ServiceInfo
impl Serialize for ServiceInfo
Source§impl ToJson for ServiceInfo
impl ToJson for ServiceInfo
Source§impl ToPlainText for ServiceInfo
impl ToPlainText for ServiceInfo
Auto Trait Implementations§
impl Freeze for ServiceInfo
impl RefUnwindSafe for ServiceInfo
impl Send for ServiceInfo
impl Sync for ServiceInfo
impl Unpin for ServiceInfo
impl UnwindSafe for ServiceInfo
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more