Enum loro_internal::LoroError
source · pub enum LoroError {
Show 16 variants
UnmatchedContext {
expected: u64,
found: u64,
},
DecodeVersionVectorError,
DecodeError(Box<str>),
JsError(Box<str>),
LockError,
PrelimError,
DuplicatedTransactionError,
NotFoundError(Box<str>),
TransactionError(Box<str>),
TempContainerError,
OutOfBound {
pos: usize,
len: usize,
},
UsedOpID {
id: ID,
},
TreeError(LoroTreeError),
ArgErr(Box<str>),
AutoCommitNotStarted,
DocDropError,
}
Variants§
UnmatchedContext
DecodeVersionVectorError
DecodeError(Box<str>)
JsError(Box<str>)
LockError
PrelimError
DuplicatedTransactionError
NotFoundError(Box<str>)
TransactionError(Box<str>)
TempContainerError
OutOfBound
UsedOpID
TreeError(LoroTreeError)
ArgErr(Box<str>)
AutoCommitNotStarted
DocDropError
Trait Implementations§
source§impl Error for LoroError
impl Error for LoroError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<LoroTreeError> for LoroError
impl From<LoroTreeError> for LoroError
source§fn from(source: LoroTreeError) -> LoroError
fn from(source: LoroTreeError) -> LoroError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for LoroError
impl Send for LoroError
impl Sync for LoroError
impl Unpin for LoroError
impl UnwindSafe for LoroError
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