pub enum ServerResponse {
Accepted {
protocol: Option<String>,
},
Redirect {
status_code: u16,
location: String,
},
Rejected {
status_code: u16,
},
}
Expand description
Handshake response received from the server.
Variants
Accepted
The server has accepted our request.
Redirect
Fields
status_code: u16
The HTTP response status code.
location: String
The location URL we should go to.
The server is redirecting us to some other location.
Rejected
Fields
status_code: u16
HTTP response status code.
The server rejected our request.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ServerResponse
impl Send for ServerResponse
impl Sync for ServerResponse
impl Unpin for ServerResponse
impl UnwindSafe for ServerResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more