pub enum StatusPattern {
Code(u16),
Informational,
Success,
Redirection,
ClientError,
ServerError,
}Expand description
The key of an entry in a Responses
map.
Either an exact status code or one of the five permitted wildcards. No other wildcard form is legal.
Variants§
Code(u16)
An exact status code, such as 404.
Informational
Every informational response, written 1XX.
Success
Every successful response, written 2XX.
Redirection
Every redirection response, written 3XX.
ClientError
Every client error response, written 4XX.
ServerError
Every server error response, written 5XX.
Implementations§
Trait Implementations§
Source§impl Clone for StatusPattern
impl Clone for StatusPattern
impl Copy for StatusPattern
Source§impl Debug for StatusPattern
impl Debug for StatusPattern
Source§impl Display for StatusPattern
impl Display for StatusPattern
impl Eq for StatusPattern
Source§impl FromStr for StatusPattern
impl FromStr for StatusPattern
Source§impl Hash for StatusPattern
impl Hash for StatusPattern
Source§impl Ord for StatusPattern
impl Ord for StatusPattern
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for StatusPattern
impl PartialEq for StatusPattern
Source§impl PartialOrd for StatusPattern
impl PartialOrd for StatusPattern
impl StructuralPartialEq for StatusPattern
Auto Trait Implementations§
impl Freeze for StatusPattern
impl RefUnwindSafe for StatusPattern
impl Send for StatusPattern
impl Sync for StatusPattern
impl Unpin for StatusPattern
impl UnsafeUnpin for StatusPattern
impl UnwindSafe for StatusPattern
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.