#[non_exhaustive]pub enum Rejected {
Unauthorized,
Forbidden,
NotFound,
BadRequest,
Unavailable,
}Expand description
Why a CONNECT is being refused.
Named rather than numeric so callers need no HTTP crate of their own, and
so this stays a contract of moq-uring’s rather than of whichever http
version it happens to build against.
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.
The peer is not allowed here (401).
Forbidden
The peer is known and still not allowed here (403).
NotFound
Nothing is served at the requested path (404).
BadRequest
The request was malformed (400).
The server cannot take it right now (503).
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 UnsafeUnpin 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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.