#[non_exhaustive]pub enum InformationalResponse {
SwitchingProtocols = 101,
Processing = 102,
EarlyHints = 103,
}Expand description
§Wikipedia:
an InformationalResponse (1xx) indicates that the request was received and understood and is being processed. It alerts the client to wait for a final response. The message does not contain a body. As the HTTP/1.0 standard did not define any 1xx status codes, servers must not send a 1xx response to an HTTP/1.0 compliant client except under experimental conditions.
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.
Trait Implementations§
Source§impl Clone for InformationalResponse
impl Clone for InformationalResponse
Source§fn clone(&self) -> InformationalResponse
fn clone(&self) -> InformationalResponse
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 InformationalResponse
impl Debug for InformationalResponse
Source§impl Display for InformationalResponse
impl Display for InformationalResponse
Source§impl From<InformationalResponse> for HttpStatus
impl From<InformationalResponse> for HttpStatus
Source§fn from(val: InformationalResponse) -> Self
fn from(val: InformationalResponse) -> Self
Converts to this type from the input type.
Source§impl Hash for InformationalResponse
impl Hash for InformationalResponse
Source§impl Ord for InformationalResponse
impl Ord for InformationalResponse
Source§fn cmp(&self, other: &InformationalResponse) -> Ordering
fn cmp(&self, other: &InformationalResponse) -> 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 InformationalResponse
impl PartialEq for InformationalResponse
Source§impl PartialOrd for InformationalResponse
impl PartialOrd for InformationalResponse
impl Eq for InformationalResponse
impl StructuralPartialEq for InformationalResponse
Auto Trait Implementations§
impl Freeze for InformationalResponse
impl RefUnwindSafe for InformationalResponse
impl Send for InformationalResponse
impl Sync for InformationalResponse
impl Unpin for InformationalResponse
impl UnwindSafe for InformationalResponse
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