#[non_exhaustive]pub enum KnownStatusCode {
Show 60 variants
None,
Cancelled,
CantResolve,
CantResolveProxy,
CantConnect,
CantConnectProxy,
SslFailed,
IoError,
Malformed,
TryAgain,
TooManyRedirects,
TlsFailed,
Continue,
SwitchingProtocols,
Processing,
Ok,
Created,
Accepted,
NonAuthoritative,
NoContent,
ResetContent,
PartialContent,
MultiStatus,
MultipleChoices,
MovedPermanently,
Found,
SeeOther,
NotModified,
UseProxy,
NotAppearingInThisProtocol,
TemporaryRedirect,
BadRequest,
Unauthorized,
PaymentRequired,
Forbidden,
NotFound,
MethodNotAllowed,
NotAcceptable,
ProxyAuthenticationRequired,
RequestTimeout,
Conflict,
Gone,
LengthRequired,
PreconditionFailed,
RequestEntityTooLarge,
RequestUriTooLong,
UnsupportedMediaType,
RequestedRangeNotSatisfiable,
ExpectationFailed,
UnprocessableEntity,
Locked,
FailedDependency,
InternalServerError,
NotImplemented,
BadGateway,
ServiceUnavailable,
GatewayTimeout,
HttpVersionNotSupported,
InsufficientStorage,
NotExtended,
}
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.
None
Cancelled
CantResolve
CantResolveProxy
CantConnect
CantConnectProxy
SslFailed
IoError
Malformed
TryAgain
TooManyRedirects
TlsFailed
Continue
SwitchingProtocols
Processing
Ok
Created
Accepted
NonAuthoritative
NoContent
ResetContent
PartialContent
MultiStatus
MultipleChoices
MovedPermanently
Found
SeeOther
NotModified
UseProxy
NotAppearingInThisProtocol
TemporaryRedirect
BadRequest
PaymentRequired
Forbidden
NotFound
MethodNotAllowed
NotAcceptable
ProxyAuthenticationRequired
RequestTimeout
Conflict
Gone
LengthRequired
PreconditionFailed
RequestEntityTooLarge
RequestUriTooLong
UnsupportedMediaType
RequestedRangeNotSatisfiable
ExpectationFailed
UnprocessableEntity
Locked
FailedDependency
InternalServerError
NotImplemented
BadGateway
GatewayTimeout
HttpVersionNotSupported
InsufficientStorage
NotExtended
Trait Implementations§
Source§impl Clone for KnownStatusCode
impl Clone for KnownStatusCode
Source§fn clone(&self) -> KnownStatusCode
fn clone(&self) -> KnownStatusCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KnownStatusCode
impl Debug for KnownStatusCode
Source§impl Display for KnownStatusCode
impl Display for KnownStatusCode
Source§impl<'a> FromValue<'a> for KnownStatusCode
impl<'a> FromValue<'a> for KnownStatusCode
Source§type Checker = GenericValueTypeChecker<KnownStatusCode>
type Checker = GenericValueTypeChecker<KnownStatusCode>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl Hash for KnownStatusCode
impl Hash for KnownStatusCode
Source§impl Ord for KnownStatusCode
impl Ord for KnownStatusCode
Source§fn cmp(&self, other: &KnownStatusCode) -> Ordering
fn cmp(&self, other: &KnownStatusCode) -> Ordering
1.21.0 · 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
Source§impl PartialEq for KnownStatusCode
impl PartialEq for KnownStatusCode
Source§impl PartialOrd for KnownStatusCode
impl PartialOrd for KnownStatusCode
Source§impl StaticType for KnownStatusCode
impl StaticType for KnownStatusCode
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for KnownStatusCode
impl ToValue for KnownStatusCode
Source§impl ValueType for KnownStatusCode
impl ValueType for KnownStatusCode
Source§type Type = KnownStatusCode
type Type = KnownStatusCode
Type to get the
Type
from. Read moreimpl Copy for KnownStatusCode
impl Eq for KnownStatusCode
impl StructuralPartialEq for KnownStatusCode
Auto Trait Implementations§
impl Freeze for KnownStatusCode
impl RefUnwindSafe for KnownStatusCode
impl Send for KnownStatusCode
impl Sync for KnownStatusCode
impl Unpin for KnownStatusCode
impl UnwindSafe for KnownStatusCode
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<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.