pub enum CobError {
Show 15 variants
InvalidOpId(String),
Canonical(CanonicalError),
Json(Error),
Git(GitError),
Crypto(CoreError),
AuthorKeyMismatch,
BadSignature,
RepoMismatch {
expected: RepoId,
found: RepoId,
},
KindMismatch {
expected: String,
found: String,
},
InvalidOp(String),
MissingParent {
op_id: OpId,
parent: OpId,
},
InvalidLamport {
op_id: OpId,
lamport: u64,
parent_lamport: u64,
},
CycleDetected,
Unauthorised {
actor: ActorId,
op_id: OpId,
reason: String,
},
UnexpectedGitObjectKind,
}Expand description
Failure returned by DAG CRDT verification, topological resolution, or persistence operations.
Variants§
InvalidOpId(String)
Canonical(CanonicalError)
Json(Error)
Git(GitError)
Crypto(CoreError)
AuthorKeyMismatch
BadSignature
RepoMismatch
KindMismatch
InvalidOp(String)
MissingParent
InvalidLamport
CycleDetected
Fields
UnexpectedGitObjectKind
Trait Implementations§
Source§impl Error for CobError
impl Error for CobError
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<CanonicalError> for CobError
impl From<CanonicalError> for CobError
Source§fn from(source: CanonicalError) -> Self
fn from(source: CanonicalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CobError
impl !UnwindSafe for CobError
impl Forget for CobError
impl Freeze for CobError
impl Move for CobError
impl Send for CobError
impl Sync for CobError
impl Unpin for CobError
impl UnsafeUnpin for CobErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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