Struct muxrpc::RpcStream
[−]
[src]
pub struct RpcStream<R: AsyncRead, I, E> { /* fields omitted */ }
A stream from the peer.
I
is the type of the emitted items, E
is the type of the errors the peer can send.
Trait Implementations
impl<R: AsyncRead, I: DeserializeOwned, E: DeserializeOwned> Stream for RpcStream<R, I, E>
[src]
type Item = I
Values yielded by the stream.
type Error = ConnectionRpcError<E>
A ConnectionRpcError::InvalidData
is non-fatal and polling the stream may be safely
continued.
fn poll_next(
&mut self,
cx: &mut Context
) -> Poll<Option<Self::Item>, Self::Error>
[src]
&mut self,
cx: &mut Context
) -> Poll<Option<Self::Item>, Self::Error>
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