pub enum UndoPolicy {
None,
ReversibleDocument,
CompensatingExternal,
}Expand description
The undoability contract for a command.
Variants§
None
Command cannot be undone (e.g. external disclosure or financial charge).
ReversibleDocument
Command can be reversed cleanly within the local document transaction stack.
CompensatingExternal
Command has external side effects that require a compensating action.
Trait Implementations§
Source§impl Clone for UndoPolicy
impl Clone for UndoPolicy
impl Copy for UndoPolicy
Source§impl Debug for UndoPolicy
impl Debug for UndoPolicy
Source§impl<'de> Deserialize<'de> for UndoPolicy
impl<'de> Deserialize<'de> for UndoPolicy
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 UndoPolicy
Source§impl Hash for UndoPolicy
impl Hash for UndoPolicy
Source§impl PartialEq for UndoPolicy
impl PartialEq for UndoPolicy
Source§impl Serialize for UndoPolicy
impl Serialize for UndoPolicy
impl StructuralPartialEq for UndoPolicy
Auto Trait Implementations§
impl Freeze for UndoPolicy
impl RefUnwindSafe for UndoPolicy
impl Send for UndoPolicy
impl Sync for UndoPolicy
impl Unpin for UndoPolicy
impl UnsafeUnpin for UndoPolicy
impl UnwindSafe for UndoPolicy
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