pub enum AutomergeError {
Show 24 variants
ChangeGraph(MissingDep),
Deflate(Error),
DuplicateSeqNumber(u64, ActorId),
Fail,
InvalidActorId(String),
InvalidChangeHashBytes(InvalidChangeHashSlice),
InvalidCharacter(usize),
InvalidHash(ChangeHash),
InvalidIndex(usize),
InvalidObjId(String),
InvalidObjIdFormat(String),
InvalidOp(ObjType),
InvalidSeq(u64),
InvalidCursor(Cursor),
InvalidCursorFormat,
InvalidValueType {
expected: String,
unexpected: String,
},
Load(Error),
LoadChangeError(LoadChangeError),
MissingCounter,
MissingHash(ChangeHash),
MissingDeps,
NonChangeCompressed,
NotAnObject,
HydrateError(HydrateError),
}
Variants§
ChangeGraph(MissingDep)
Deflate(Error)
DuplicateSeqNumber(u64, ActorId)
Fail
InvalidActorId(String)
InvalidChangeHashBytes(InvalidChangeHashSlice)
InvalidCharacter(usize)
InvalidHash(ChangeHash)
InvalidIndex(usize)
InvalidObjId(String)
InvalidObjIdFormat(String)
InvalidOp(ObjType)
InvalidSeq(u64)
InvalidCursor(Cursor)
InvalidCursorFormat
InvalidValueType
Load(Error)
LoadChangeError(LoadChangeError)
MissingCounter
MissingHash(ChangeHash)
MissingDeps
NonChangeCompressed
NotAnObject
HydrateError(HydrateError)
Trait Implementations§
Source§impl Debug for AutomergeError
impl Debug for AutomergeError
Source§impl Display for AutomergeError
impl Display for AutomergeError
Source§impl Error for AutomergeError
impl Error for AutomergeError
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<AutomergeError> for UpdateObjectError
impl From<AutomergeError> for UpdateObjectError
Source§fn from(source: AutomergeError) -> Self
fn from(source: AutomergeError) -> Self
Converts to this type from the input type.
Source§impl From<HydrateError> for AutomergeError
impl From<HydrateError> for AutomergeError
Source§fn from(source: HydrateError) -> Self
fn from(source: HydrateError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidChangeHashSlice> for AutomergeError
impl From<InvalidChangeHashSlice> for AutomergeError
Source§fn from(source: InvalidChangeHashSlice) -> Self
fn from(source: InvalidChangeHashSlice) -> Self
Converts to this type from the input type.
Source§impl From<LoadError> for AutomergeError
impl From<LoadError> for AutomergeError
Source§fn from(source: LoadChangeError) -> Self
fn from(source: LoadChangeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AutomergeError
impl PartialEq for AutomergeError
Auto Trait Implementations§
impl Freeze for AutomergeError
impl !RefUnwindSafe for AutomergeError
impl Send for AutomergeError
impl Sync for AutomergeError
impl Unpin for AutomergeError
impl !UnwindSafe for AutomergeError
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