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.