pub enum ToSec1OctetStringError {
NotEcKey,
MissingCoordinate,
InvalidCoordinateType,
UnequalCoordinateLength,
}Expand description
The error type returned when a CoseKey can’t be converted to a SEC1 octet string.
Variants§
NotEcKey
The CoseKey is not an elliptic curve iana::KeyType::EC2 key type.
MissingCoordinate
The X or Y coordinate is not present in the key parameters.
InvalidCoordinateType
The X or Y coordinate is an invalid CBOR type.
UnequalCoordinateLength
The X and Y coordinates are not the same length.
Trait Implementations§
Source§impl Clone for ToSec1OctetStringError
impl Clone for ToSec1OctetStringError
Source§fn clone(&self) -> ToSec1OctetStringError
fn clone(&self) -> ToSec1OctetStringError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToSec1OctetStringError
impl Debug for ToSec1OctetStringError
Source§impl Display for ToSec1OctetStringError
impl Display for ToSec1OctetStringError
Source§impl Error for ToSec1OctetStringError
impl Error for ToSec1OctetStringError
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 PartialEq for ToSec1OctetStringError
impl PartialEq for ToSec1OctetStringError
impl Copy for ToSec1OctetStringError
impl Eq for ToSec1OctetStringError
impl StructuralPartialEq for ToSec1OctetStringError
Auto Trait Implementations§
impl Freeze for ToSec1OctetStringError
impl RefUnwindSafe for ToSec1OctetStringError
impl Send for ToSec1OctetStringError
impl Sync for ToSec1OctetStringError
impl Unpin for ToSec1OctetStringError
impl UnsafeUnpin for ToSec1OctetStringError
impl UnwindSafe for ToSec1OctetStringError
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