#[non_exhaustive]pub enum ParseClaimError {
UnsupportedVersion {
version: u64,
},
Malformed,
}Expand description
The reasons claim-body bytes can fail to parse.
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.
UnsupportedVersion
The version field names a format this crate does not read.
Malformed
The bytes are not a valid claim body of the supported version.
Trait Implementations§
Source§impl Clone for ParseClaimError
impl Clone for ParseClaimError
impl Copy for ParseClaimError
Source§impl Debug for ParseClaimError
impl Debug for ParseClaimError
Source§impl Display for ParseClaimError
impl Display for ParseClaimError
impl Eq for ParseClaimError
Source§impl Error for ParseClaimError
impl Error for ParseClaimError
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 ParseClaimError
impl PartialEq for ParseClaimError
impl StructuralPartialEq for ParseClaimError
Auto Trait Implementations§
impl Forget for ParseClaimError
impl Freeze for ParseClaimError
impl Move for ParseClaimError
impl RefUnwindSafe for ParseClaimError
impl Send for ParseClaimError
impl Sync for ParseClaimError
impl Unpin for ParseClaimError
impl UnsafeUnpin for ParseClaimError
impl UnwindSafe for ParseClaimError
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