pub enum ProfileError {
KeyIdLength {
actual: usize,
},
MessageIdLength {
actual: usize,
},
EmptySubject,
ContentTypeForm,
EmptyPartyIdentity,
EmptySignature,
}Expand description
An identifier newtype was constructed from out-of-range input.
Variants§
KeyIdLength
A key id must be 1..=128 bytes.
MessageIdLength
A message id (CWT cti) must be 1..=64 bytes.
EmptySubject
A subject / audience / response-subject string must be non-empty.
ContentTypeForm
A content type must be of type/subtype form with no surrounding
whitespace (RFC 9052 tstr content type carries a media type).
EmptyPartyIdentity
A KDF party identity must be non-empty when present.
EmptySignature
A signature must be non-empty.
Trait Implementations§
Source§impl Clone for ProfileError
impl Clone for ProfileError
Source§fn clone(&self) -> ProfileError
fn clone(&self) -> ProfileError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProfileError
Source§impl Debug for ProfileError
impl Debug for ProfileError
Source§impl Display for ProfileError
impl Display for ProfileError
impl Eq for ProfileError
Source§impl Error for ProfileError
impl Error for ProfileError
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<ProfileError> for DecodeError
impl From<ProfileError> for DecodeError
Source§fn from(e: ProfileError) -> Self
fn from(e: ProfileError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProfileError
impl PartialEq for ProfileError
Source§fn eq(&self, other: &ProfileError) -> bool
fn eq(&self, other: &ProfileError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProfileError
Auto Trait Implementations§
impl Freeze for ProfileError
impl RefUnwindSafe for ProfileError
impl Send for ProfileError
impl Sync for ProfileError
impl Unpin for ProfileError
impl UnsafeUnpin for ProfileError
impl UnwindSafe for ProfileError
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