pub enum HistoryEvent {
Executed(CommandId),
Undone(CommandId),
Redone(CommandId),
Cleared,
CheckpointCreated(CheckpointId),
CheckpointRestored(CheckpointId),
Trimmed(usize),
}Expand description
State change notification
Variants§
Executed(CommandId)
Command was executed
Undone(CommandId)
Command was undone
Redone(CommandId)
Command was redone
Cleared
History was cleared
CheckpointCreated(CheckpointId)
Checkpoint was created
CheckpointRestored(CheckpointId)
Restored to checkpoint
Trimmed(usize)
History limit reached, old commands dropped
Trait Implementations§
Source§impl Clone for HistoryEvent
impl Clone for HistoryEvent
Source§fn clone(&self) -> HistoryEvent
fn clone(&self) -> HistoryEvent
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 HistoryEvent
impl Debug for HistoryEvent
Source§impl PartialEq for HistoryEvent
impl PartialEq for HistoryEvent
impl Eq for HistoryEvent
impl StructuralPartialEq for HistoryEvent
Auto Trait Implementations§
impl Freeze for HistoryEvent
impl RefUnwindSafe for HistoryEvent
impl Send for HistoryEvent
impl Sync for HistoryEvent
impl Unpin for HistoryEvent
impl UnwindSafe for HistoryEvent
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more