#[non_exhaustive]pub enum DenialKind {
SignIn,
Forbidden,
Hidden,
Status(u16),
}Expand description
What the visitor is told when a gate denies.
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.
SignIn
Sign in first: a 303 to the site’s sign-in page for a page request, a 401 otherwise.
Forbidden
403 Forbidden.
Hidden
404 Not Found: the visitor is not told that the thing exists.
Status(u16)
Another 4xx status (a 429 for a standing limit, for example).
Trait Implementations§
Source§impl Clone for DenialKind
impl Clone for DenialKind
impl Copy for DenialKind
Source§impl Debug for DenialKind
impl Debug for DenialKind
impl Eq for DenialKind
Source§impl PartialEq for DenialKind
impl PartialEq for DenialKind
impl StructuralPartialEq for DenialKind
Auto Trait Implementations§
impl Forget for DenialKind
impl Freeze for DenialKind
impl RefUnwindSafe for DenialKind
impl Send for DenialKind
impl Sync for DenialKind
impl Unpin for DenialKind
impl UnsafeUnpin for DenialKind
impl UnwindSafe for DenialKind
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