pub struct HttpStatusStruct(pub i32, pub &'static str);
Expand description
HTTP status structure.
Example:
HttpStatusStruct(200, "OK")
HttpStatusStruct(400, "Not Found")
HttpStatusStruct(500, "This is not a bug. It is a feature.")
Tuple Fields§
§0: i32
§1: &'static str
Auto Trait Implementations§
impl Freeze for HttpStatusStruct
impl RefUnwindSafe for HttpStatusStruct
impl Send for HttpStatusStruct
impl Sync for HttpStatusStruct
impl Unpin for HttpStatusStruct
impl UnwindSafe for HttpStatusStruct
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