#[non_exhaustive]pub enum CheckAdmissionError {
NodeMismatch,
SubjectMismatch,
NoticeMismatch,
}Expand description
The reasons a parsed admission claim can fail AdmissionClaim::check.
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.
NodeMismatch
The claim names a different node.
SubjectMismatch
The claim’s subject is not the signer of the request.
NoticeMismatch
The claim’s notice digest is not the digest of the node’s notice.
Trait Implementations§
Source§impl Clone for CheckAdmissionError
impl Clone for CheckAdmissionError
impl Copy for CheckAdmissionError
Source§impl Debug for CheckAdmissionError
impl Debug for CheckAdmissionError
Source§impl Display for CheckAdmissionError
impl Display for CheckAdmissionError
impl Eq for CheckAdmissionError
Source§impl Error for CheckAdmissionError
impl Error for CheckAdmissionError
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 CheckAdmissionError
impl PartialEq for CheckAdmissionError
impl StructuralPartialEq for CheckAdmissionError
Auto Trait Implementations§
impl Forget for CheckAdmissionError
impl Freeze for CheckAdmissionError
impl Move for CheckAdmissionError
impl RefUnwindSafe for CheckAdmissionError
impl Send for CheckAdmissionError
impl Sync for CheckAdmissionError
impl Unpin for CheckAdmissionError
impl UnsafeUnpin for CheckAdmissionError
impl UnwindSafe for CheckAdmissionError
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