Enum soketto::handshake::client::ServerResponse
source · 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
The server is redirecting us to some other location.
Rejected
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§
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