Struct twilight_http::response::StatusCode [−][src]
pub struct StatusCode(_);Expand description
Status code of a response.
Comparing the status code
Status codes can easily be compared with status code integers due to
implementing PartialEq<u16>. This is equivalent to checking against the
value returned by StatusCode::raw.
Implementations
Whether the status code is informational.
This is defined as being between [100, 200).
Whether the status code is a success.
This is defined as being between [200, 300).
Whether the status code is a redirection.
This is defined as being between [300, 400).
Whether the status code is a client error.
This is defined as being between [400, 500).
Whether the status code is a server error.
This is defined as being between [500, 600).
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more