Struct abstio::io_native::FileWithProgress [−][src]
pub struct FileWithProgress {
inner: BufReader<File>,
path: String,
processed_bytes: usize,
total_bytes: usize,
started_at: Instant,
last_printed_at: Instant,
}
Fields
inner: BufReader<File>
path: String
processed_bytes: usize
total_bytes: usize
started_at: Instant
last_printed_at: Instant
Implementations
Trait Implementations
Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Like read
, except that it reads into a slice of buffers. Read more
can_vector
)Determines if this Read
er has an efficient read_vectored
implementation. Read more
Read all bytes until EOF in this source, placing them into buf
. Read more
Read all bytes until EOF in this source, appending them to buf
. Read more
Read the exact number of bytes required to fill buf
. Read more
read_buf
)Pull some bytes from this source into the specified buffer. Read more
read_buf
)Read the exact number of bytes required to fill buf
. Read more
Creates a “by reference” adaptor for this instance of Read
. Read more
Creates an adapter which will chain this stream with another. Read more
Auto Trait Implementations
impl RefUnwindSafe for FileWithProgress
impl Send for FileWithProgress
impl Sync for FileWithProgress
impl Unpin for FileWithProgress
impl UnwindSafe for FileWithProgress
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<R> TermRead for R where
R: Read + TermReadEventsAndRaw,
impl<R> TermRead for R where
R: Read + TermReadEventsAndRaw,
impl<R> TermReadEventsAndRaw for R where
R: Read,
impl<R> TermReadEventsAndRaw for R where
R: Read,
pub fn events_and_raw(self) -> EventsAndRaw<R>
pub fn events_and_raw(self) -> EventsAndRaw<R>
An iterator over input events and the bytes that define them.