pub struct FinishedRun { /* private fields */ }
Expand description
A transient service finished.
Implementations§
Source§impl FinishedRun
impl FinishedRun
Sourcepub fn is_failed(&self) -> bool
pub fn is_failed(&self) -> bool
Check if the FinishedRun
has failed.
Read SuccessExitStatus=
in
systemd.service(5) for details.
Sourcepub fn wall_time_usage(&self) -> Duration
pub fn wall_time_usage(&self) -> Duration
Get the usage of wall-clock time of the finished transient service.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FinishedRun
impl RefUnwindSafe for FinishedRun
impl Send for FinishedRun
impl Sync for FinishedRun
impl Unpin for FinishedRun
impl UnwindSafe for FinishedRun
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