pub struct ClientConnection<S = TcpStream> {
pub reader: WsReader<ReadHalf<S>>,
pub writer: WsWriter<WriteHalf<S>>,
pub subprotocol: Option<String>,
pub deflate: bool,
}Fields§
§reader: WsReader<ReadHalf<S>>§writer: WsWriter<WriteHalf<S>>§subprotocol: Option<String>Subprotocol selected by the server, if any.
deflate: boolAuto Trait Implementations§
impl<S> Freeze for ClientConnection<S>
impl<S> RefUnwindSafe for ClientConnection<S>
impl<S> Send for ClientConnection<S>
impl<S> Sync for ClientConnection<S>
impl<S> Unpin for ClientConnection<S>
impl<S> UnsafeUnpin for ClientConnection<S>
impl<S> UnwindSafe for ClientConnection<S>
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