pub enum ErrorKind {
Validation,
Network,
Serialization,
Cryptographic,
Storage,
ResourceExhausted,
NotFound,
AlreadyExists,
PermissionDenied,
Internal,
}Expand description
Categories of errors in the CHIE protocol
Variants§
Validation
Validation errors (invalid input, constraint violations)
Network
Network errors (connection failures, timeouts)
Serialization
Serialization/deserialization errors
Cryptographic
Cryptographic errors (signing, verification failures)
Storage
Storage errors (disk I/O, database issues)
ResourceExhausted
Resource exhaustion (quota exceeded, rate limited)
NotFound
Not found errors (missing content, peer, etc.)
AlreadyExists
Already exists errors (duplicate content, etc.)
PermissionDenied
Permission denied errors
Internal
Internal errors (bugs, unexpected state)
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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