#[non_exhaustive]pub enum ParseAdmissionError {
WrongPurpose,
Malformed,
}Expand description
The reasons admission-claim 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.
WrongPurpose
The purpose member is not ADMISSION_CLAIM_PURPOSE.
Malformed
The bytes are not a valid admission claim.
Trait Implementations§
Source§impl Clone for ParseAdmissionError
impl Clone for ParseAdmissionError
impl Copy for ParseAdmissionError
Source§impl Debug for ParseAdmissionError
impl Debug for ParseAdmissionError
Source§impl Display for ParseAdmissionError
impl Display for ParseAdmissionError
impl Eq for ParseAdmissionError
Source§impl Error for ParseAdmissionError
impl Error for ParseAdmissionError
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 ParseAdmissionError
impl PartialEq for ParseAdmissionError
impl StructuralPartialEq for ParseAdmissionError
Auto Trait Implementations§
impl Forget for ParseAdmissionError
impl Freeze for ParseAdmissionError
impl Move for ParseAdmissionError
impl RefUnwindSafe for ParseAdmissionError
impl Send for ParseAdmissionError
impl Sync for ParseAdmissionError
impl Unpin for ParseAdmissionError
impl UnsafeUnpin for ParseAdmissionError
impl UnwindSafe for ParseAdmissionError
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