Struct lz_stream_io::SinkWrite
[−]
[src]
pub struct SinkWrite<S> { /* fields omitted */ }
A Write
and AsyncWrite
implementation for a Sink
of byte buffers.
Methods
impl<S: Sink> SinkWrite<S>
[src]
fn new(sink: S) -> Self
[src]
Creates a new SinkWrite
with the specified Sink
fn into_inner(self) -> S
[src]
Unwraps the inner Sink
.
Trait Implementations
impl<S: Debug> Debug for SinkWrite<S>
[src]
impl<S: Sink> Write for SinkWrite<S> where
S::SinkItem: for<'a> From<&'a [u8]>,
IoError: From<S::SinkError>,
[src]
S::SinkItem: for<'a> From<&'a [u8]>,
IoError: From<S::SinkError>,
fn write(&mut self, buf: &[u8]) -> IoResult<usize>
[src]
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> IoResult<()>
[src]
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Creates a "by reference" adaptor for this instance of Write
. Read more
impl<S: Sink> AsyncWrite for SinkWrite<S> where
S::SinkItem: for<'a> From<&'a [u8]>,
IoError: From<S::SinkError>,
[src]
S::SinkItem: for<'a> From<&'a [u8]>,
IoError: From<S::SinkError>,
fn shutdown(&mut self) -> Poll<(), IoError>
[src]
Initiates or attempts to shut down this writer, returning success when the I/O connection has completely shut down. Read more
fn write_buf<B>(&mut self, buf: &mut B) -> Result<Async<usize>, Error> where
B: Buf,
[src]
B: Buf,
Write a Buf
into this value, returning how many bytes were written. Read more