Struct gain::stream::buf::ReadWriteStream [−][src]
pub struct ReadWriteStream { /* fields omitted */ }
Expand description
Bidirectional stream with input buffering.
Implementations
Convert an unbuffered stream into a stream with input buffering.
Convert an unbuffered stream into a stream with custom input buffer size.
Trait Implementations
fn close(&mut self) -> CloseⓘNotable traits for StreamCloseFutureimpl Future for StreamCloseFuture type Output = ();
fn close(&mut self) -> CloseⓘNotable traits for StreamCloseFutureimpl Future for StreamCloseFuture type Output = ();
Notable traits for StreamCloseFuture
impl Future for StreamCloseFuture type Output = ();
Close a stream. Returns a future.
Performs the conversion.
Write part of a byte slice. Returns a future.
fn write_note<'a>(&'a mut self, data: &'a [u8], note: i32) -> Write<'_>ⓘNotable traits for StreamWriteFuture<'_>impl Future for StreamWriteFuture<'_> type Output = Result<usize>;
fn write_note<'a>(&'a mut self, data: &'a [u8], note: i32) -> Write<'_>ⓘNotable traits for StreamWriteFuture<'_>impl Future for StreamWriteFuture<'_> type Output = Result<usize>;
Notable traits for StreamWriteFuture<'_>
impl Future for StreamWriteFuture<'_> type Output = Result<usize>;
Write part of a byte slice. Returns a future.