pub trait StreamBase<'a>: X11rbStream {
    type Readable: Future<Output = Result<()>> + Send + 'a;
    type Writable: Future<Output = Result<()>> + Send + 'a;

    // Required methods
    fn readable(&'a self) -> Self::Readable;
    fn writable(&'a self) -> Self::Writable;
}
Expand description

A stream that bytes can be read from or written to.

Required Associated Types§

source

type Readable: Future<Output = Result<()>> + Send + 'a

The future returned by readable.

source

type Writable: Future<Output = Result<()>> + Send + 'a

The future returned by writable.

Required Methods§

source

fn readable(&'a self) -> Self::Readable

Wait until the stream is readable.

source

fn writable(&'a self) -> Self::Writable

Wait until the stream is writable.

Implementors§

source§

impl<'a, S: 'a + X11rbStream + Sync> StreamBase<'a> for StreamAdaptor<S>

§

type Readable = Readable<'a, S>

§

type Writable = Writable<'a, S>