#[repr(transparent)]
pub struct HttpStatusCode(pub i32);

Tuple Fields§

§0: i32

Implementations§

§

impl HttpStatusCode

pub const None: Self = _

pub const Continue: Self = _

pub const SwitchingProtocols: Self = _

pub const Processing: Self = _

pub const Ok: Self = _

pub const Created: Self = _

pub const Accepted: Self = _

pub const NonAuthoritativeInformation: Self = _

pub const NoContent: Self = _

pub const ResetContent: Self = _

pub const PartialContent: Self = _

pub const MultiStatus: Self = _

pub const AlreadyReported: Self = _

pub const IMUsed: Self = _

pub const MultipleChoices: Self = _

pub const MovedPermanently: Self = _

pub const Found: Self = _

pub const SeeOther: Self = _

pub const NotModified: Self = _

pub const UseProxy: Self = _

pub const TemporaryRedirect: Self = _

pub const PermanentRedirect: Self = _

pub const BadRequest: Self = _

pub const Unauthorized: Self = _

pub const PaymentRequired: Self = _

pub const Forbidden: Self = _

pub const NotFound: Self = _

pub const MethodNotAllowed: Self = _

pub const NotAcceptable: Self = _

pub const ProxyAuthenticationRequired: Self = _

pub const RequestTimeout: Self = _

pub const Conflict: Self = _

pub const Gone: Self = _

pub const LengthRequired: Self = _

pub const PreconditionFailed: Self = _

pub const RequestEntityTooLarge: Self = _

pub const RequestUriTooLong: Self = _

pub const UnsupportedMediaType: Self = _

pub const RequestedRangeNotSatisfiable: Self = _

pub const ExpectationFailed: Self = _

pub const UnprocessableEntity: Self = _

pub const Locked: Self = _

pub const FailedDependency: Self = _

pub const UpgradeRequired: Self = _

pub const PreconditionRequired: Self = _

pub const TooManyRequests: Self = _

pub const RequestHeaderFieldsTooLarge: Self = _

pub const InternalServerError: Self = _

pub const NotImplemented: Self = _

pub const BadGateway: Self = _

pub const ServiceUnavailable: Self = _

pub const GatewayTimeout: Self = _

pub const HttpVersionNotSupported: Self = _

pub const VariantAlsoNegotiates: Self = _

pub const InsufficientStorage: Self = _

pub const LoopDetected: Self = _

pub const NotExtended: Self = _

pub const NetworkAuthenticationRequired: Self = _

Trait Implementations§

§

impl Clone for HttpStatusCode

§

fn clone(&self) -> HttpStatusCode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for HttpStatusCode

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for HttpStatusCode

§

fn default() -> HttpStatusCode

Returns the “default value” for a type. Read more
§

impl PartialEq for HttpStatusCode

§

fn eq(&self, other: &HttpStatusCode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for HttpStatusCode

§

impl Eq for HttpStatusCode

§

impl StructuralPartialEq for HttpStatusCode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.