Enum deno_websocket::WebSocketStreamType [−][src]
pub enum WebSocketStreamType {
Client {
tx: AsyncRefCell<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, Message>>,
rx: AsyncRefCell<SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>>,
},
Server {
tx: AsyncRefCell<SplitSink<WebSocketStream<Upgraded>, Message>>,
rx: AsyncRefCell<SplitStream<WebSocketStream<Upgraded>>>,
},
}
Variants
Client
Fields
tx: AsyncRefCell<SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, Message>>
rx: AsyncRefCell<SplitStream<WebSocketStream<MaybeTlsStream<TcpStream>>>>
Server
Fields
tx: AsyncRefCell<SplitSink<WebSocketStream<Upgraded>, Message>>
rx: AsyncRefCell<SplitStream<WebSocketStream<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
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more