pub enum CoseError {
DecodeFailed(Error<EndOfFile>),
DuplicateMapKey,
EncodeFailed,
ExtraneousData,
OutOfRangeIntegerValue,
UnexpectedItem(&'static str, &'static str),
UnregisteredIanaValue,
UnregisteredIanaNonPrivateValue,
}Expand description
Error type for failures in encoding or decoding COSE types.
Variants§
DecodeFailed(Error<EndOfFile>)
CBOR decoding failure.
DuplicateMapKey
Duplicate map key detected.
EncodeFailed
CBOR encoding failure.
ExtraneousData
CBOR input had extra data.
OutOfRangeIntegerValue
Integer value on the wire is outside the range of integers representable in this crate. See https://crates.io/crates/coset/#integer-ranges.
UnexpectedItem(&'static str, &'static str)
Unexpected CBOR item encountered (got, want).
UnregisteredIanaValue
Unrecognized value in IANA-controlled range (with no private range).
UnregisteredIanaNonPrivateValue
Unrecognized value in neither IANA-controlled range nor private range.
Trait Implementations§
Source§impl Error for CoseError
Available on crate feature std only.
impl Error for CoseError
Available on crate feature
std only.1.30.0 · 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<TryFromIntError> for CoseError
impl From<TryFromIntError> for CoseError
Source§fn from(_: TryFromIntError) -> CoseError
fn from(_: TryFromIntError) -> CoseError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CoseError
impl RefUnwindSafe for CoseError
impl Send for CoseError
impl Sync for CoseError
impl Unpin for CoseError
impl UnwindSafe for CoseError
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.