pub enum SecretOutcome {
Accepted {
expires_at: Option<i64>,
},
Rejected,
Unreachable,
}Variants§
Accepted
Unix seconds, or None for a key that never expires, so scene 2 can warn first.
Rejected
401: wrong, unknown, expired or revoked, which the server does not tell apart.
Unreachable
Could not ask, which DESIGN.md treats as permission to continue unvalidated.
Trait Implementations§
Source§impl Clone for SecretOutcome
impl Clone for SecretOutcome
Source§fn clone(&self) -> SecretOutcome
fn clone(&self) -> SecretOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SecretOutcome
Source§impl Debug for SecretOutcome
impl Debug for SecretOutcome
impl Eq for SecretOutcome
Source§impl PartialEq for SecretOutcome
impl PartialEq for SecretOutcome
impl StructuralPartialEq for SecretOutcome
Auto Trait Implementations§
impl Freeze for SecretOutcome
impl RefUnwindSafe for SecretOutcome
impl Send for SecretOutcome
impl Sync for SecretOutcome
impl Unpin for SecretOutcome
impl UnsafeUnpin for SecretOutcome
impl UnwindSafe for SecretOutcome
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