[][src]Struct seed::browser::fetch::Status

pub struct Status {
    pub code: u16,
    pub text: String,
    pub category: StatusCategory,
}

Response status.

It's intended to create Status from web_sys::Response - eg: Status::from(&raw_response).

Fields

code: u16

Code examples: 200, 404, ...

text: String

Text examples: "OK", "Not Found", ...

category: StatusCategory

Implementations

impl Status[src]

pub fn is_error(&self) -> bool[src]

Is response status category ClientError or ServerError? (Code 400-599)

pub fn is_ok(&self) -> bool[src]

Is response status category Success? (Code 200-299)

Trait Implementations

impl Clone for Status[src]

impl Debug for Status[src]

impl<'_> From<&'_ Response> for Status[src]

Auto Trait Implementations

impl RefUnwindSafe for Status

impl Send for Status

impl Sync for Status

impl Unpin for Status

impl UnwindSafe for Status

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,