[−][src]Enum redo::Signal
The signal sent when the record, the history, or the target changes.
When one of these states changes, they will send a corresponding signal to the user.
For example, if the record can no longer redo any commands, it sends a Redo(false)
signal to tell the user.
Variants
Undo(bool)
Says if the record can undo.
This signal will be emitted when the records ability to undo changes.
Redo(bool)
Says if the record can redo.
This signal will be emitted when the records ability to redo changes.
Saved(bool)
Says if the target is in a saved state.
This signal will be emitted when the record enters or leaves its targets saved state.
Says if the current command has changed.
This signal will be emitted when the current command has changed. This includes
when two commands have been merged, in which case old == new
.
Says if the current branch has changed.
This is currently only emitted from History
.
Trait Implementations
impl Debug for Signal
[src]
impl PartialEq<Signal> for Signal
[src]
impl Eq for Signal
[src]
impl Ord for Signal
[src]
fn cmp(&self, other: &Signal) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialOrd<Signal> for Signal
[src]
fn partial_cmp(&self, other: &Signal) -> Option<Ordering>
[src]
fn lt(&self, other: &Signal) -> bool
[src]
fn le(&self, other: &Signal) -> bool
[src]
fn gt(&self, other: &Signal) -> bool
[src]
fn ge(&self, other: &Signal) -> bool
[src]
impl Hash for Signal
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Copy for Signal
[src]
impl StructuralPartialEq for Signal
[src]
impl StructuralEq for Signal
[src]
impl Clone for Signal
[src]
impl Serialize for Signal
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Signal
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for Signal
impl Send for Signal
impl Sync for Signal
impl UnwindSafe for Signal
impl RefUnwindSafe for Signal
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,