pub enum CborError {
MalformedCbor(String),
MalformedCborCanisterRanges,
UnexpectedCborNodeType {
expected_type: String,
found_type: String,
},
Utf8ConversionError(FromUtf8Error),
MalformedCertificate(String),
MalformedHashTree(String),
IncorrectPrunedDataLength(TryFromSliceError),
UnexpectedEndOfInput,
}Variants§
MalformedCbor(String)
The CBOR was malformed and could not be parsed correctly
MalformedCborCanisterRanges
Certificate delegation canister range was not correctly CBOR encoded
UnexpectedCborNodeType
Fields
The Cbor parser expected a node of a certain type but found a different type
Utf8ConversionError(FromUtf8Error)
Error converting UTF-8 string
MalformedCertificate(String)
The certificate was malformed and could not be parsed correctly
MalformedHashTree(String)
The hash tree was malformed and could not be parsed correctly
IncorrectPrunedDataLength(TryFromSliceError)
The hash tree pruned data was not the correct length
UnexpectedEndOfInput
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)>
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<FromUtf8Error> for CborError
impl From<FromUtf8Error> for CborError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<TryFromSliceError> for CborError
impl From<TryFromSliceError> for CborError
source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for CborError
impl Send for CborError
impl Sync for CborError
impl Unpin for CborError
impl UnwindSafe 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