pub struct HttpStatus {
pub code: u16,
pub reason: &'static str,
}Expand description
A common HTTP status code and its standard reason phrase.
Fields§
§code: u16§reason: &'static strTrait Implementations§
Source§impl Clone for HttpStatus
impl Clone for HttpStatus
Source§fn clone(&self) -> HttpStatus
fn clone(&self) -> HttpStatus
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 moreSource§impl Debug for HttpStatus
impl Debug for HttpStatus
Source§impl Hash for HttpStatus
impl Hash for HttpStatus
Source§impl PartialEq for HttpStatus
impl PartialEq for HttpStatus
Source§fn eq(&self, other: &HttpStatus) -> bool
fn eq(&self, other: &HttpStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HttpStatus
impl Eq for HttpStatus
impl StructuralPartialEq for HttpStatus
Auto Trait Implementations§
impl Freeze for HttpStatus
impl RefUnwindSafe for HttpStatus
impl Send for HttpStatus
impl Sync for HttpStatus
impl Unpin for HttpStatus
impl UnsafeUnpin for HttpStatus
impl UnwindSafe for HttpStatus
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