pub enum Rejected {
Missing,
Invalid,
Expired,
}Expand description
Why an identity was refused. One reason per way a connection can be wrong about who it is.
Variants§
Missing
No credential at all where one was required.
Invalid
A credential that does not verify — a wrong signature, or one for a different secret.
Expired
A credential that verifies and has expired.
Implementations§
Source§impl Rejected
impl Rejected
Sourcepub fn message(&self) -> &'static str
pub fn message(&self) -> &'static str
What the client is told. Deliberately coarse: a client learns that it was refused and not which of the three it was, because the difference is useful to an attacker and to nobody else. The operator gets the distinction, in the log.
pub fn reason(&self) -> &'static str
Trait Implementations§
impl Copy for Rejected
impl Eq for Rejected
impl StructuralPartialEq for Rejected
Auto Trait Implementations§
impl Freeze for Rejected
impl RefUnwindSafe for Rejected
impl Send for Rejected
impl Sync for Rejected
impl Unpin for Rejected
impl UnwindSafe for Rejected
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more