pub enum CborError {
NumberOutOfRange,
LengthOutOfRange,
UnexpectedCode,
UnknownTag,
UnexpectedKey,
UnexpectedEof,
Io(Error),
Utf8(Utf8Error),
Cid(Error),
Ipld(IpldError),
}Expand description
CBOR error.
Variants§
NumberOutOfRange
Number larger than u64.
LengthOutOfRange
Length larger than usize.
UnexpectedCode
Unexpected cbor code.
UnknownTag
Unknown cbor tag.
UnexpectedKey
Unexpected key.
UnexpectedEof
Unexpected eof.
Io(Error)
Io error.
Utf8(Utf8Error)
Utf8 error.
Cid(Error)
Cid error.
Ipld(IpldError)
Ipld error.
Trait Implementations§
Source§impl Error for CborError
impl Error for CborError
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<CborError> for BlockError
impl From<CborError> for BlockError
Auto Trait Implementations§
impl !RefUnwindSafe for CborError
impl !UnwindSafe for CborError
impl Freeze for CborError
impl Send for CborError
impl Sync for CborError
impl Unpin for CborError
impl UnsafeUnpin for CborError
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