pub enum ExitReason {
Normal,
Crashed(String),
Runaway(String),
}Expand description
Why a process stopped.
Variants§
Normal
Ran to completion.
Crashed(String)
A typed runtime failure. Carries the rendered error.
Runaway(String)
The execution budget ran out — a runaway. This is the case that was previously an OS-process abort, and it is the reason supervision is possible at all.
Implementations§
Source§impl ExitReason
impl ExitReason
pub fn is_abnormal(&self) -> bool
Trait Implementations§
Source§impl Clone for ExitReason
impl Clone for ExitReason
Source§fn clone(&self) -> ExitReason
fn clone(&self) -> ExitReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExitReason
impl Debug for ExitReason
Source§impl PartialEq for ExitReason
impl PartialEq for ExitReason
impl StructuralPartialEq for ExitReason
Auto Trait Implementations§
impl Freeze for ExitReason
impl RefUnwindSafe for ExitReason
impl Send for ExitReason
impl Sync for ExitReason
impl Unpin for ExitReason
impl UnsafeUnpin for ExitReason
impl UnwindSafe for ExitReason
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