pub enum UndoRefusal {
Spent,
Stale {
top: Rev,
},
}Expand description
Why a history step did not happen.
Self::Stale earns its place: a caller keeping its own history can
name a rev this trail does not hold on top, and stepping its neighbour
instead would be silent.
Variants§
Trait Implementations§
Source§impl Debug for UndoRefusal
impl Debug for UndoRefusal
Source§impl Display for UndoRefusal
impl Display for UndoRefusal
Source§impl Error for UndoRefusal
impl Error for UndoRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for UndoRefusal
impl PartialEq for UndoRefusal
impl StructuralPartialEq for UndoRefusal
Auto Trait Implementations§
impl Freeze for UndoRefusal
impl RefUnwindSafe for UndoRefusal
impl Send for UndoRefusal
impl Sync for UndoRefusal
impl Unpin for UndoRefusal
impl UnsafeUnpin for UndoRefusal
impl UnwindSafe for UndoRefusal
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