pub enum FinishError {
InvalidProposal,
ContextChanged,
ValueChanged,
}Expand description
Why a draft cannot be committed to the current host state.
Variants§
InvalidProposal
The most recent proposal was rejected. Correct it before finishing.
ContextChanged
Document, target, selection or relevant revision has changed.
ValueChanged
The live value changed without the context being updated.
Trait Implementations§
Source§impl Clone for FinishError
impl Clone for FinishError
impl Copy for FinishError
Source§impl Debug for FinishError
impl Debug for FinishError
Source§impl Display for FinishError
impl Display for FinishError
impl Eq for FinishError
Source§impl Error for FinishError
impl Error for FinishError
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 FinishError
impl PartialEq for FinishError
impl StructuralPartialEq for FinishError
Auto Trait Implementations§
impl Freeze for FinishError
impl RefUnwindSafe for FinishError
impl Send for FinishError
impl Sync for FinishError
impl Unpin for FinishError
impl UnsafeUnpin for FinishError
impl UnwindSafe for FinishError
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