jupyter_websocket_client

Type Alias JupyterWebSocketReader

Source
pub type JupyterWebSocketReader = SplitStream<JupyterWebSocket>;

Aliased Type§

struct JupyterWebSocketReader(/* private fields */);

Implementations

Source§

impl<S> SplitStream<S>

Source

pub fn is_pair_of<Item>(&self, other: &SplitSink<S, Item>) -> bool

Returns true if the SplitStream<S> and SplitSink<S> originate from the same call to StreamExt::split.

Source§

impl<S> SplitStream<S>
where S: Unpin,

Source

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.

Trait Implementations

Source§

impl<S> Debug for SplitStream<S>
where S: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<S> Stream for SplitStream<S>
where S: Stream,

Source§

type Item = <S as Stream>::Item

Values yielded by the stream.
Source§

fn poll_next( self: Pin<&mut SplitStream<S>>, cx: &mut Context<'_>, ) -> Poll<Option<<S as Stream>::Item>>

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more
Source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the stream. Read more
Source§

impl<S> Unpin for SplitStream<S>