#[non_exhaustive]pub enum SuspendMode {
FlatOnly,
RiskReducingOnly,
FullHalt,
}Expand description
Operating mode a Directive::Suspend places a child into. Ordered from
least to most restrictive; an actor’s on_directive
hook is expected to gate its outbound effects accordingly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FlatOnly
Accept only actions that move toward a flat / zero position.
RiskReducingOnly
Accept only risk-reducing actions (a superset of flat-only intent).
FullHalt
Reject all outbound effects until resumed.
Trait Implementations§
Source§impl Clone for SuspendMode
impl Clone for SuspendMode
Source§fn clone(&self) -> SuspendMode
fn clone(&self) -> SuspendMode
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 SuspendMode
impl Debug for SuspendMode
Source§impl PartialEq for SuspendMode
impl PartialEq for SuspendMode
Source§fn eq(&self, other: &SuspendMode) -> bool
fn eq(&self, other: &SuspendMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SuspendMode
impl Eq for SuspendMode
impl StructuralPartialEq for SuspendMode
Auto Trait Implementations§
impl Freeze for SuspendMode
impl RefUnwindSafe for SuspendMode
impl Send for SuspendMode
impl Sync for SuspendMode
impl Unpin for SuspendMode
impl UnsafeUnpin for SuspendMode
impl UnwindSafe for SuspendMode
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.