pub struct UnitSim {
pub observed: Observed,
pub ended: Option<Ending>,
pub health: Health,
pub fail_after: Option<Millis>,
pub fail_on_start: bool,
pub systemd_restart: Option<Millis>,
pub started_at: Timestamp,
pub failed_at: Option<Timestamp>,
pub restarts: u32,
pub auto_restarts: u32,
}Fields§
§observed: Observed§ended: Option<Ending>How the main process last ended (ended_by).
health: Health§fail_after: Option<Millis>Exits this long after each start (flapping).
fail_on_start: boolFails every start (corrupt state file).
systemd_restart: Option<Millis>systemd Restart= with this RestartSec.
started_at: Timestamp§failed_at: Option<Timestamp>§restarts: u32§auto_restarts: u32Restarts systemd made on its own (NRestarts).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnitSim
impl RefUnwindSafe for UnitSim
impl Send for UnitSim
impl Sync for UnitSim
impl Unpin for UnitSim
impl UnsafeUnpin for UnitSim
impl UnwindSafe for UnitSim
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