pub enum ChallengeOutcome {
NotRequested,
PresentButUnchecked,
NoResponse,
NoEstablishedKey,
Verified {
signed_at: String,
},
Failed {
reason: String,
},
}Expand description
The outcome of the challenge-response handshake within a presentation.
Variants§
NotRequested
The verifier passed no nonce, so no liveness was checked.
PresentButUnchecked
A response is present but the verifier passed no nonce to check it.
NoResponse
A nonce was requested but the presentation carries no response.
NoEstablishedKey
A response is present but the card did not verify key-bound, so there is no established key to check the response against.
Verified
The bearer proved live control of the card key; carries the response’s
bearer-signed signed_at.
Failed
The response was checked against the established key and failed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChallengeOutcome
impl RefUnwindSafe for ChallengeOutcome
impl Send for ChallengeOutcome
impl Sync for ChallengeOutcome
impl Unpin for ChallengeOutcome
impl UnsafeUnpin for ChallengeOutcome
impl UnwindSafe for ChallengeOutcome
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