#[non_exhaustive]pub enum OpaqueTokenError {
InvalidEncoding,
InvalidJson(String),
WrongKind {
expected: &'static str,
actual: String,
},
UnsupportedVersion {
expected: u8,
actual: u8,
},
}Expand description
Invalid opaque token encoding, version, kind, or body.
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.
InvalidEncoding
The token was not lowercase hexadecimal JSON.
InvalidJson(String)
The token JSON did not match the expected shape.
WrongKind
The token belongs to another family.
Fields
UnsupportedVersion
The token format version is not supported by this build.
Trait Implementations§
Source§impl Clone for OpaqueTokenError
impl Clone for OpaqueTokenError
Source§impl Debug for OpaqueTokenError
impl Debug for OpaqueTokenError
Source§impl Display for OpaqueTokenError
impl Display for OpaqueTokenError
impl Eq for OpaqueTokenError
Source§impl Error for OpaqueTokenError
impl Error for OpaqueTokenError
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<OpaqueTokenError> for PageCursorError
impl From<OpaqueTokenError> for PageCursorError
Source§fn from(error: OpaqueTokenError) -> Self
fn from(error: OpaqueTokenError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OpaqueTokenError
impl PartialEq for OpaqueTokenError
impl StructuralPartialEq for OpaqueTokenError
Auto Trait Implementations§
impl Freeze for OpaqueTokenError
impl RefUnwindSafe for OpaqueTokenError
impl Send for OpaqueTokenError
impl Sync for OpaqueTokenError
impl Unpin for OpaqueTokenError
impl UnsafeUnpin for OpaqueTokenError
impl UnwindSafe for OpaqueTokenError
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