pub enum SnapshotPolicy {
Never,
OnSuccess,
Always,
}Expand description
Indicates whether the engine should snapshot context after the state.
Variants§
Never
Do not request an additional snapshot for this state outcome.
OnSuccess
Request a snapshot only when the state succeeds.
Always
Request a snapshot even if the state fails.
Trait Implementations§
Source§impl Clone for SnapshotPolicy
impl Clone for SnapshotPolicy
Source§fn clone(&self) -> SnapshotPolicy
fn clone(&self) -> SnapshotPolicy
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 SnapshotPolicy
impl Debug for SnapshotPolicy
Source§impl<'de> Deserialize<'de> for SnapshotPolicy
impl<'de> Deserialize<'de> for SnapshotPolicy
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
Source§impl PartialEq for SnapshotPolicy
impl PartialEq for SnapshotPolicy
Source§impl Serialize for SnapshotPolicy
impl Serialize for SnapshotPolicy
impl Eq for SnapshotPolicy
impl StructuralPartialEq for SnapshotPolicy
Auto Trait Implementations§
impl Freeze for SnapshotPolicy
impl RefUnwindSafe for SnapshotPolicy
impl Send for SnapshotPolicy
impl Sync for SnapshotPolicy
impl Unpin for SnapshotPolicy
impl UnsafeUnpin for SnapshotPolicy
impl UnwindSafe for SnapshotPolicy
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