pub struct Status(/* private fields */);Expand description
An HTTP response status code.
Implementations§
Source§impl Status
impl Status
pub const CONTINUE: Self
pub const SWITCHING_PROTOCOLS: Self
pub const PROCESSING: Self
pub const EARLY_HINTS: Self
pub const OK: Self
pub const CREATED: Self
pub const ACCEPTED: Self
pub const NON_AUTHORITATIVE_INFORMATION: Self
pub const NO_CONTENT: Self
pub const RESET_CONTENT: Self
pub const PARTIAL_CONTENT: Self
pub const MULTI_STATUS: Self
pub const ALREADY_REPORTED: Self
pub const IM_USED: Self
pub const MULTIPLE_CHOICES: Self
pub const MOVED_PERMANENTLY: Self
pub const FOUND: Self
pub const SEE_OTHER: Self
pub const NOT_MODIFIED: Self
pub const TEMPORARY_REDIRECT: Self
pub const PERMANENT_REDIRECT: Self
pub const BAD_REQUEST: Self
pub const UNAUTHORIZED: Self
pub const PAYMENT_REQUIRED: Self
pub const FORBIDDEN: Self
pub const NOT_FOUND: Self
pub const METHOD_NOT_ALLOWED: Self
pub const NOT_ACCEPTABLE: Self
pub const PROXY_AUTHENTICATION_REQUIRED: Self
pub const REQUEST_TIMEOUT: Self
pub const CONFLICT: Self
pub const GONE: Self
pub const LENGTH_REQUIRED: Self
pub const PRECONDITION_FAILED: Self
pub const PAYLOAD_TOO_LARGE: Self
pub const URI_TOO_LONG: Self
pub const UNSUPPORTED_MEDIA_TYPE: Self
pub const RANGE_NOT_SATISFIABLE: Self
pub const EXPECTATION_FAILED: Self
pub const IM_A_TEAPOT: Self
pub const UNPROCESSABLE_CONTENT: Self
pub const TOO_EARLY: Self
pub const UPGRADE_REQUIRED: Self
pub const TOO_MANY_REQUESTS: Self
pub const REQUEST_HEADER_FIELDS_TOO_LARGE: Self
pub const INTERNAL_SERVER_ERROR: Self
pub const NOT_IMPLEMENTED: Self
pub const BAD_GATEWAY: Self
pub const SERVICE_UNAVAILABLE: Self
pub const GATEWAY_TIMEOUT: Self
pub const HTTP_VERSION_NOT_SUPPORTED: Self
pub const VARIANT_ALSO_NEGOTIATES: Self
pub const INSUFFICIENT_STORAGE: Self
pub const LOOP_DETECTED: Self
pub const NOT_EXTENDED: Self
pub const NETWORK_AUTHENTICATION_REQUIRED: Self
Sourcepub const fn is_informational(self) -> bool
pub const fn is_informational(self) -> bool
Returns whether this is a 1xx status.
Sourcepub const fn is_success(self) -> bool
pub const fn is_success(self) -> bool
Returns whether this is a 2xx status.
Sourcepub const fn is_redirection(self) -> bool
pub const fn is_redirection(self) -> bool
Returns whether this is a 3xx status.
Sourcepub const fn is_client_error(self) -> bool
pub const fn is_client_error(self) -> bool
Returns whether this is a 4xx status.
Sourcepub const fn is_server_error(self) -> bool
pub const fn is_server_error(self) -> bool
Returns whether this is a 5xx status.
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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