pub enum WebSocketStreamType {
Client {
tx: AsyncRefCell<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, Message>>,
rx: AsyncRefCell<SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>>,
},
Server {
tx: AsyncRefCell<SplitSink<WebSocketStream<Pin<Box<dyn Upgraded>>>, Message>>,
rx: AsyncRefCell<SplitStream<WebSocketStream<Pin<Box<dyn Upgraded>>>>>,
},
}
Variants
Client
Fields
tx: AsyncRefCell<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, Message>>
rx: AsyncRefCell<SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>>
Server
Fields
tx: AsyncRefCell<SplitSink<WebSocketStream<Pin<Box<dyn Upgraded>>>, Message>>
rx: AsyncRefCell<SplitStream<WebSocketStream<Pin<Box<dyn Upgraded>>>>>
Auto Trait Implementations
impl !RefUnwindSafe for WebSocketStreamType
impl !Send for WebSocketStreamType
impl !Sync for WebSocketStreamType
impl Unpin for WebSocketStreamType
impl !UnwindSafe for WebSocketStreamType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more