Enum picky::jose::jws::JwsError [−][src]
#[non_exhaustive] pub enum JwsError { Rsa { context: String, }, Json { source: Error, }, Signature { source: SignatureError, }, InvalidEncoding { input: String, }, Base64Decoding { source: DecodeError, }, InvalidUtf8 { source: FromUtf8Error, input: Vec<u8>, }, }
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RSA error
Show fields
Fields of Rsa
context: String
Json error
Show fields
Fields of Json
source: Error
signature error
Show fields
Fields of Signature
source: SignatureError
invalid token encoding
Show fields
Fields of InvalidEncoding
input: String
couldn’t decode base64
Show fields
Fields of Base64Decoding
source: DecodeError
input isn’t valid utf8
Show fields
Fields of InvalidUtf8
source: FromUtf8Error
input: Vec<u8>
Trait Implementations
impl Error for JwsError
[src]
impl Error for JwsError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<DecodeError> for JwsError
[src]
impl From<DecodeError> for JwsError
[src]fn from(e: DecodeError) -> Self
[src]
fn from(e: DecodeError) -> Self
[src]Performs the conversion.
impl From<SignatureError> for JwsError
[src]
impl From<SignatureError> for JwsError
[src]fn from(e: SignatureError) -> Self
[src]
fn from(e: SignatureError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for JwsError
impl Send for JwsError
impl Sync for JwsError
impl Unpin for JwsError
impl !UnwindSafe for JwsError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,