Struct systemd_run::FinishedRun
source · 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.