pub struct ExitInfo {
pub code: Option<i32>,
pub signal: Option<i32>,
}Expand description
Why a sheep’s process most recently stopped existing under this daemon.
Behind ProcessInfo::last_exit’s own Option, so None there means
never exited. Ordinarily exactly one of code/signal is Some,
mirroring the OS’s WIFEXITED/WIFSIGNALED split; both None together
is legal and means this daemon recorded an exit it could not
characterize.
Fields§
§code: Option<i32>The process’s own exit code, set on a normal exit (WIFEXITED).
signal: Option<i32>The raw unix signal number that ended the process, set when it did
not exit on its own (WIFSIGNALED). An operator’s own shep stop
counts: the process still stopped by a signal.
Platform-specific, and never rendered as a name here; that is an OS-aware layer’s job.
Trait Implementations§
impl Copy for ExitInfo
Source§impl<'de> Deserialize<'de> for ExitInfo
impl<'de> Deserialize<'de> for ExitInfo
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 Eq for ExitInfo
impl StructuralPartialEq for ExitInfo
Auto Trait Implementations§
impl Freeze for ExitInfo
impl RefUnwindSafe for ExitInfo
impl Send for ExitInfo
impl Sync for ExitInfo
impl Unpin for ExitInfo
impl UnsafeUnpin for ExitInfo
impl UnwindSafe for ExitInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.