Type Alias workflow_websocket::server::WebSocketReceiver
source · pub type WebSocketReceiver = SplitStream<WebSocketStream<TcpStream>>;
Expand description
WebSocket stream receiver for receiving tungstenite::Message
.
This stream object must have a mutable reference and can not be cloned.
Aliased Type§
struct WebSocketReceiver(/* private fields */);
Implementations
source§impl<S> SplitStream<S>where
S: Unpin,
impl<S> SplitStream<S>where
S: Unpin,
sourcepub fn reunite<Item>(
self,
other: SplitSink<S, Item>
) -> Result<S, ReuniteError<S, Item>>where
S: Sink<Item>,
pub fn reunite<Item>(
self,
other: SplitSink<S, Item>
) -> Result<S, ReuniteError<S, Item>>where
S: Sink<Item>,
Attempts to put the two “halves” of a split Stream + Sink
back
together. Succeeds only if the SplitStream<S>
and SplitSink<S>
are
a matching pair originating from the same call to StreamExt::split
.