pub enum LoroError {
Show 26 variants
UnmatchedContext {
expected: u64,
found: u64,
},
DecodeVersionVectorError,
DecodeError(Box<str>),
DecodeDataCorruptionError,
DecodeChecksumMismatchError,
IncompatibleFutureEncodingError(usize),
JsError(Box<str>),
LockError,
DuplicatedTransactionError,
NotFoundError(Box<str>),
TransactionError(Box<str>),
OutOfBound {
pos: usize,
len: usize,
},
UsedOpID {
id: ID,
},
TreeError(LoroTreeError),
ArgErr(Box<str>),
AutoCommitNotStarted,
StyleConfigMissing(InternalString),
Unknown(Box<str>),
FrontiersNotFound(ID),
ImportWhenInTxn,
MisuseDetachedContainer {
method: &'static str,
},
NotImplemented(&'static str),
ReattachAttachedContainer,
EditWhenDetached,
UndoInvalidIdSpan(ID),
UndoWithDifferentPeerId {
expected: u64,
actual: u64,
},
}
Variants§
UnmatchedContext
DecodeVersionVectorError
DecodeError(Box<str>)
DecodeDataCorruptionError
DecodeChecksumMismatchError
IncompatibleFutureEncodingError(usize)
JsError(Box<str>)
LockError
DuplicatedTransactionError
NotFoundError(Box<str>)
TransactionError(Box<str>)
OutOfBound
UsedOpID
TreeError(LoroTreeError)
ArgErr(Box<str>)
AutoCommitNotStarted
StyleConfigMissing(InternalString)
Unknown(Box<str>)
FrontiersNotFound(ID)
ImportWhenInTxn
MisuseDetachedContainer
NotImplemented(&'static str)
ReattachAttachedContainer
EditWhenDetached
UndoInvalidIdSpan(ID)
UndoWithDifferentPeerId
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<ColumnarError> for LoroError
impl From<ColumnarError> for LoroError
source§fn from(e: ColumnarError) -> LoroError
fn from(e: ColumnarError) -> LoroError
Converts to this type from the input type.
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 Freeze for LoroError
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more