Struct indicatif::ProgressBarWrap [−][src]
pub struct ProgressBarWrap<W> { /* fields omitted */ }Expand description
wraps an io-object, either a Reader or a Writer (or both).
created by wrap_read or wrap_write
Trait Implementations
impl<W: Debug> Debug for ProgressBarWrap<W>[src]
impl<W: Debug> Debug for ProgressBarWrap<W>[src]impl<R: Read> Read for ProgressBarWrap<R>[src]
impl<R: Read> Read for ProgressBarWrap<R>[src]fn read(&mut self, buf: &mut [u8]) -> Result<usize>[src]
fn read(&mut self, buf: &mut [u8]) -> Result<usize>[src]Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>1.36.0[src]
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>1.36.0[src]Like read, except that it reads into a slice of buffers. Read more
fn is_read_vectored(&self) -> bool[src]
fn is_read_vectored(&self) -> bool[src]can_vector)Determines if this Reader has an efficient read_vectored
implementation. Read more
unsafe fn initializer(&self) -> Initializer[src]
unsafe fn initializer(&self) -> Initializer[src]read_initializer)Determines if this Reader can work with buffers of uninitialized
memory. Read more
fn read_to_end(&mut self, buf: &mut Vec<u8, Global>) -> Result<usize, Error>1.0.0[src]
fn read_to_end(&mut self, buf: &mut Vec<u8, Global>) -> Result<usize, Error>1.0.0[src]Read all bytes until EOF in this source, placing them into buf. Read more
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>1.0.0[src]
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>1.0.0[src]Read all bytes until EOF in this source, appending them to buf. Read more
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>1.6.0[src]
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>1.6.0[src]Read the exact number of bytes required to fill buf. Read more
fn by_ref(&mut self) -> &mut Self1.0.0[src]
fn by_ref(&mut self) -> &mut Self1.0.0[src]Creates a “by reference” adaptor for this instance of Read. Read more
impl<S: Seek> Seek for ProgressBarWrap<S>[src]
impl<S: Seek> Seek for ProgressBarWrap<S>[src]fn seek(&mut self, f: SeekFrom) -> Result<u64>[src]
fn seek(&mut self, f: SeekFrom) -> Result<u64>[src]Seek to an offset, in bytes, in a stream. Read more
fn rewind(&mut self) -> Result<(), Error>[src]
fn rewind(&mut self) -> Result<(), Error>[src]seek_rewind)Rewind to the beginning of a stream. Read more
impl<W: Write> Write for ProgressBarWrap<W>[src]
impl<W: Write> Write for ProgressBarWrap<W>[src]fn write(&mut self, buf: &[u8]) -> Result<usize>[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>[src]Write a buffer into this writer, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>[src]
fn flush(&mut self) -> Result<()>[src]Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<()>[src]
fn write_all(&mut self, buf: &[u8]) -> Result<()>[src]Attempts to write an entire buffer into this writer. Read more
fn is_write_vectored(&self) -> bool[src]
fn is_write_vectored(&self) -> bool[src]can_vector)Determines if this Writer has an efficient write_vectored
implementation. Read more
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>[src]
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>[src]write_all_vectored)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations
impl<W> RefUnwindSafe for ProgressBarWrap<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for ProgressBarWrap<W> where
W: Send,
W: Send,
impl<W> Sync for ProgressBarWrap<W> where
W: Sync,
W: Sync,
impl<W> Unpin for ProgressBarWrap<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for ProgressBarWrap<W> where
W: UnwindSafe,
W: UnwindSafe,