[][src]Struct abstutil::io::FileWithProgress

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: Stringprocessed_bytes: usizetotal_bytes: usizestarted_at: Instantlast_printed_at: Instant

Implementations

impl FileWithProgress[src]

pub fn new(
    path: &str
) -> Result<(FileWithProgress, Box<dyn Fn(&mut Timer)>), Error>
[src]

Trait Implementations

impl Read for FileWithProgress[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<R> ReadBytesExt for R where
    R: Read + ?Sized

impl<R> TermRead for R where
    R: TermReadEventsAndRaw + Read

impl<R> TermReadEventsAndRaw for R where
    R: Read

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,