pub struct HttpStatus {
pub redirected: bool,
pub size: usize,
pub status: u16,
pub status_text: String,
}
Expand description
Represents the final result of a HTTP request
Fields§
§redirected: bool
Indicates if the HTTP request was redirected to another URL / server
size: usize
Size of the data held in the response receiver
status: u16
Status code returned by the server
status_text: String
Status text returned by the server
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpStatus
impl RefUnwindSafe for HttpStatus
impl Send for HttpStatus
impl Sync for HttpStatus
impl Unpin 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