pub struct Denials { /* private fields */ }Expand description
Every refusal one request’s credentials drew, in the order they were tried.
There is one entry per credential field value that was tried and refused, and
that is the unit [security] max_auth_failures counts (decision D76, addendum
of 2026-09-04). A request carrying no credential value at all draws the single
Denied::Missing entry, so there is always at least one; a request carrying
more than MAX_CREDENTIAL_VALUES of them is refused by crate::conn
before any value is tried, so there are never more than that many.
Implementations§
Source§impl Denials
impl Denials
Sourcepub fn reported(&self) -> &Denied
pub fn reported(&self) -> &Denied
The refusal that is reported.
The first one, which comes from the highest-priority header, so it is the one most likely to be the client’s real attempt.
Trait Implementations§
impl Eq for Denials
impl StructuralPartialEq for Denials
Auto Trait Implementations§
impl Freeze for Denials
impl RefUnwindSafe for Denials
impl Send for Denials
impl Sync for Denials
impl Unpin for Denials
impl UnsafeUnpin for Denials
impl UnwindSafe for Denials
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