pub struct HttpStatusCode(pub u16);Expand description
HTTP status code.
Tuple Fields§
§0: u16Implementations§
Source§impl HttpStatusCode
impl HttpStatusCode
Sourcepub fn is_success(self) -> bool
pub fn is_success(self) -> bool
Returns true if the status code is in the 2xx range.
Sourcepub fn is_redirection(self) -> bool
pub fn is_redirection(self) -> bool
Returns true if the status code is in the 3xx range.
Trait Implementations§
Source§impl Clone for HttpStatusCode
impl Clone for HttpStatusCode
Source§fn clone(&self) -> HttpStatusCode
fn clone(&self) -> HttpStatusCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HttpStatusCode
Source§impl Debug for HttpStatusCode
impl Debug for HttpStatusCode
Source§impl Deref for HttpStatusCode
impl Deref for HttpStatusCode
impl Eq for HttpStatusCode
Source§impl PartialEq for HttpStatusCode
impl PartialEq for HttpStatusCode
impl StructuralPartialEq for HttpStatusCode
Auto Trait Implementations§
impl Freeze for HttpStatusCode
impl RefUnwindSafe for HttpStatusCode
impl Send for HttpStatusCode
impl Sync for HttpStatusCode
impl Unpin for HttpStatusCode
impl UnsafeUnpin for HttpStatusCode
impl UnwindSafe for HttpStatusCode
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