windows::Web::Http

Struct HttpStatusCode

#[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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.

§

impl<T, U> Param<T, CopyType> for U
where T: TypeKind<TypeKind = CopyType> + Clone, U: TypeKind<TypeKind = CopyType> + Clone + CanInto<T>,

§

unsafe fn param(self) -> ParamValue<T>

Source§

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

Source§

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>,

Source§

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>,

Source§

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.