#[repr(u8)]pub enum FlowExitReason {
Normal = 0,
Shutdown = 1,
Killed = 2,
Fault = 3,
MailboxOverflow = 4,
Supervisor = 5,
Link = 6,
}Expand description
Why a flow left the directory. Encoded as Message.payload on system hops.
Named FlowExitReason so it does not collide with the JIT
ExitReason (trace-compiler control flow).
Variants§
Normal = 0
Shutdown = 1
Reserved: host-wide runtime teardown (not produced today).
Killed = 2
Fault = 3
MailboxOverflow = 4
Reserved: overflow-kill policy (today overflow is MailboxFull / park).
Supervisor = 5
Link = 6
Implementations§
Source§impl FlowExitReason
impl FlowExitReason
pub fn from_u64(raw: u64) -> Option<Self>
pub fn as_u64(self) -> u64
Sourcepub fn is_abnormal(self) -> bool
pub fn is_abnormal(self) -> bool
Abnormal exits propagate through links (BEAM: normal does not).
Shutdown / Killed / Supervisor are host-policy reasons;
they still count as abnormal so a supervisor abort is not
silently swallowed by links.
Trait Implementations§
Source§impl Clone for FlowExitReason
impl Clone for FlowExitReason
Source§fn clone(&self) -> FlowExitReason
fn clone(&self) -> FlowExitReason
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 moreimpl Copy for FlowExitReason
Source§impl Debug for FlowExitReason
impl Debug for FlowExitReason
Source§impl Display for FlowExitReason
impl Display for FlowExitReason
impl Eq for FlowExitReason
Source§impl PartialEq for FlowExitReason
impl PartialEq for FlowExitReason
impl StructuralPartialEq for FlowExitReason
Auto Trait Implementations§
impl Freeze for FlowExitReason
impl RefUnwindSafe for FlowExitReason
impl Send for FlowExitReason
impl Sync for FlowExitReason
impl Unpin for FlowExitReason
impl UnsafeUnpin for FlowExitReason
impl UnwindSafe for FlowExitReason
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,
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§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.