pub enum Ending {
Exited(i32),
Signal(i32),
OomKill,
}Expand description
How a unit’s main process last ended, as the supervisor reports it.
Variants§
Exited(i32)
It exited with this status.
Signal(i32)
A signal ended it (systemctl stop sends SIGTERM).
OomKill
The kernel’s OOM killer ended it (Result=oom-kill).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ending
impl<'de> Deserialize<'de> for Ending
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 Copy for Ending
impl Eq for Ending
impl StructuralPartialEq for Ending
Auto Trait Implementations§
impl Freeze for Ending
impl RefUnwindSafe for Ending
impl Send for Ending
impl Sync for Ending
impl Unpin for Ending
impl UnsafeUnpin for Ending
impl UnwindSafe for Ending
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