Enum automerge::AutomergeError
source · pub enum AutomergeError {
Show 25 variants
ChangeGraph(MissingDep),
Deflate(Error),
DuplicateSeqNumber(u64, ActorId),
EmptyStringKey,
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)
EmptyStringKey
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)>
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 JsValue
impl From<AutomergeError> for JsValue
source§fn from(err: AutomergeError) -> Self
fn from(err: AutomergeError) -> 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<AutomergeError> for AutomergeError
impl PartialEq<AutomergeError> for AutomergeError
Auto Trait Implementations§
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