pub enum CreationError {
Header(Error),
Claims(Error),
CborClaims(Error),
}Expand description
Errors that can occur during token creation.
Variants§
Header(Error)
Token header cannot be serialized.
Claims(Error)
Token claims cannot be serialized into JSON.
CborClaims(Error)
Token claims cannot be serialized into CBOR.
Trait Implementations§
Source§impl Debug for CreationError
impl Debug for CreationError
Source§impl Display for CreationError
impl Display for CreationError
Source§impl Error for CreationError
impl Error for CreationError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for CreationError
impl !UnwindSafe for CreationError
impl Freeze for CreationError
impl Send for CreationError
impl Sync for CreationError
impl Unpin for CreationError
impl UnsafeUnpin for CreationError
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