pub enum UnhandledPolicy {
Discard,
DeadLetter,
Error,
}Expand description
What to do with an external event that enables no transition and is not deferred.
Variants§
Discard
Drop it, as the SCXML algorithm does (default for plain sessions).
DeadLetter
Record it as a vt:DeadLetter (default for virtual actors).
Error
Raise error.unhandled in the chart with the event as data.
Implementations§
Trait Implementations§
Source§impl Clone for UnhandledPolicy
impl Clone for UnhandledPolicy
impl Copy for UnhandledPolicy
Source§impl Debug for UnhandledPolicy
impl Debug for UnhandledPolicy
Source§impl<'de> Deserialize<'de> for UnhandledPolicy
impl<'de> Deserialize<'de> for UnhandledPolicy
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 UnhandledPolicy
Source§impl Hash for UnhandledPolicy
impl Hash for UnhandledPolicy
Source§impl PartialEq for UnhandledPolicy
impl PartialEq for UnhandledPolicy
Source§impl Serialize for UnhandledPolicy
impl Serialize for UnhandledPolicy
impl StructuralPartialEq for UnhandledPolicy
Auto Trait Implementations§
impl Forget for UnhandledPolicy
impl Freeze for UnhandledPolicy
impl Move for UnhandledPolicy
impl RefUnwindSafe for UnhandledPolicy
impl Send for UnhandledPolicy
impl Sync for UnhandledPolicy
impl Unpin for UnhandledPolicy
impl UnsafeUnpin for UnhandledPolicy
impl UnwindSafe for UnhandledPolicy
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