pub enum UpstreamConnection {
Connected {
handshake: WireResponse<()>,
socket: WebSocket,
},
Rejected(WireResponse<HttpBody>),
}Expand description
The result of a WebSocket-capable upstream connect attempt.
Variants§
Connected
The handshake succeeded and the socket is ready for frames.
Rejected(WireResponse<HttpBody>)
The upstream rejected the handshake. The complete response body is retained so the host can decode or relay the vendor error.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for UpstreamConnection
impl !RefUnwindSafe for UpstreamConnection
impl !Sync for UpstreamConnection
impl !UnwindSafe for UpstreamConnection
impl Send for UpstreamConnection
impl Unpin for UpstreamConnection
impl UnsafeUnpin for UpstreamConnection
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