pub enum Response<'a> {
Accept {
key: WebSocketKey,
protocol: Option<&'a str>,
},
Reject {
status_code: u16,
},
}
Expand description
Handshake response the server sends back to the client.
Variants§
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§
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