pub enum IncrementalError {
StaleVersion {
received: i64,
current: i64,
},
InvalidSpan,
InvalidPosition,
}Expand description
Why an edit or a position was refused.
Every one of these is raised before the document is touched, so a refused call leaves the previous revision intact.
Variants§
StaleVersion
The batch’s version does not advance on the current one, so it describes a revision that has already been overtaken.
Fields
InvalidSpan
A change is inverted, starts before its predecessor ends, or reaches past the end of the document.
InvalidPosition
The line does not exist, or character does not land on a boundary of
the encoding it was counted in.
Trait Implementations§
Source§impl Clone for IncrementalError
impl Clone for IncrementalError
Source§fn clone(&self) -> IncrementalError
fn clone(&self) -> IncrementalError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IncrementalError
impl Debug for IncrementalError
Source§impl Display for IncrementalError
impl Display for IncrementalError
impl Eq for IncrementalError
Source§impl Error for IncrementalError
impl Error for IncrementalError
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 IncrementalError
impl PartialEq for IncrementalError
impl StructuralPartialEq for IncrementalError
Auto Trait Implementations§
impl Freeze for IncrementalError
impl RefUnwindSafe for IncrementalError
impl Send for IncrementalError
impl Sync for IncrementalError
impl Unpin for IncrementalError
impl UnsafeUnpin for IncrementalError
impl UnwindSafe for IncrementalError
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