pub enum ExitReason {
Signal,
EventChannelClosed,
SignalChannelClosed,
ChannelInactive,
ComponentStopped,
IoChannelClosed,
UserQuit,
}Expand description
Result of a ChannelRunner’s execution.
Why a ChannelRunner exited its event loop.
Carried in RunnerResult and forwarded to the engine monitor
via RunnerExitNotice
so that Lua components can react to unexpected terminations.
Variants§
Signal
Signal-initiated stop (Veto, Cancel, etc.).
EventChannelClosed
Event channel closed — no more events will arrive.
SignalChannelClosed
Signal channel closed — engine is shutting down.
ChannelInactive
Channel became inactive in World (parent stopped, etc.).
ComponentStopped
Component’s handle_event returned false (self-stop).
IoChannelClosed
IO bridge closed — user terminal disconnected (ClientRunner only).
UserQuit
User issued a quit command via IO (ClientRunner only).
Implementations§
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 · 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 Display for ExitReason
impl Display for ExitReason
Source§impl PartialEq for ExitReason
impl PartialEq for ExitReason
impl Copy for ExitReason
impl Eq 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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.