Struct StreamWriter
pub struct StreamWriter<W: Write> { /* private fields */ }
Wrapper around a [Write] implementation that implements the [Seek] trait, but where seeking returns an error unless it's a no-op.
Implementations
impl<W: Write> StreamWriter<W>
fn new(inner: W) -> StreamWriter<W>Creates an instance wrapping the provided inner writer.
fn get_ref(&self) -> &WGets a reference to the underlying writer.
fn get_mut(&mut self) -> &mut WGets a mutable reference to the underlying writer.
fn into_inner(self) -> WConsumes this wrapper, returning the underlying writer.
Trait Implementations
impl<W: Write> Seek for StreamWriter<W>
fn seek(&mut self, pos: SeekFrom) -> Result<u64>
impl<W: Write> Write for StreamWriter<W>
fn write(&mut self, buf: &[u8]) -> Result<usize>fn flush(&mut self) -> Result<()>