pub enum LoroError {
Show 38 variants
UnmatchedContext {
expected: PeerID,
found: PeerID,
},
DecodeVersionVectorError,
DecodeError(Box<str>),
DecodeDataCorruptionError,
DecodeChecksumMismatchError,
IncompatibleFutureEncodingError(usize),
JsError(Box<str>),
LockError,
DuplicatedTransactionError,
NotFoundError(Box<str>),
TransactionError(Box<str>),
OutOfBound {
pos: usize,
len: usize,
info: Box<str>,
},
UsedOpID {
id: ID,
},
ConcurrentOpsWithSamePeerID {
peer: PeerID,
last_counter: i32,
current: i32,
},
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: PeerID,
actual: PeerID,
},
UndoGroupAlreadyStarted,
InvalidJsonSchema,
UTF8InUnicodeCodePoint {
pos: usize,
},
UTF16InUnicodeCodePoint {
pos: usize,
},
EndIndexLessThanStartIndex {
start: usize,
end: usize,
},
InvalidRootContainerName,
ImportUpdatesThatDependsOnOutdatedVersion,
SwitchToVersionBeforeShallowRoot,
ContainerDeleted {
container: Box<ContainerID>,
},
InvalidPeerID,
ContainersNotFound {
containers: Box<Vec<ContainerID>>,
},
}
Variants§
UnmatchedContext
DecodeVersionVectorError
DecodeError(Box<str>)
DecodeDataCorruptionError
DecodeChecksumMismatchError
IncompatibleFutureEncodingError(usize)
JsError(Box<str>)
LockError
DuplicatedTransactionError
NotFoundError(Box<str>)
TransactionError(Box<str>)
OutOfBound
UsedOpID
ConcurrentOpsWithSamePeerID
TreeError(LoroTreeError)
ArgErr(Box<str>)
AutoCommitNotStarted
StyleConfigMissing(InternalString)
Unknown(Box<str>)
FrontiersNotFound(ID)
ImportWhenInTxn
MisuseDetachedContainer
NotImplemented(&'static str)
ReattachAttachedContainer
EditWhenDetached
UndoInvalidIdSpan(ID)
UndoWithDifferentPeerId
UndoGroupAlreadyStarted
InvalidJsonSchema
UTF8InUnicodeCodePoint
UTF16InUnicodeCodePoint
EndIndexLessThanStartIndex
InvalidRootContainerName
ImportUpdatesThatDependsOnOutdatedVersion
SwitchToVersionBeforeShallowRoot
ContainerDeleted
Fields
§
container: Box<ContainerID>
InvalidPeerID
ContainersNotFound
Fields
§
containers: Box<Vec<ContainerID>>
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)>
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 From<ColumnarError> for LoroError
impl From<ColumnarError> for LoroError
Source§fn from(e: ColumnarError) -> Self
fn from(e: ColumnarError) -> Self
Converts to this type from the input type.
Source§impl From<LoroTreeError> for LoroError
impl From<LoroTreeError> for LoroError
Source§fn from(source: LoroTreeError) -> Self
fn from(source: LoroTreeError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for LoroError
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> 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