pub enum Error {
UnknownCodec,
InputTooShort,
ParsingError,
InvalidCidVersion,
InvalidCidV0Codec,
InvalidCidV0Multihash,
InvalidCidV0Base,
VarIntDecodeError,
Io(Error),
}
Expand description
Error types
Variants
UnknownCodec
Unknown CID codec.
InputTooShort
Input data is too short.
ParsingError
Multibase or multihash codec failure
InvalidCidVersion
Invalid CID version.
InvalidCidV0Codec
Invalid CIDv0 codec.
InvalidCidV0Multihash
Invalid CIDv0 multihash.
InvalidCidV0Base
Invalid CIDv0 base encoding.
VarIntDecodeError
Varint decode failure.
Io(Error)
Io error.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more