pub enum Response<'a> {
Accept {
key: &'a [u8],
protocol: Option<&'a str>,
},
Reject {
status_code: u16,
},
}
Expand description
Handshake response the server sends back to the client.
Variants
Accept
The server accepts the handshake request.
Reject
Fields
status_code: u16
The server rejects the handshake request.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Response<'a>
impl<'a> Send for Response<'a>
impl<'a> Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> UnwindSafe for Response<'a>
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