[][src]Trait exr::image::OnReadProgress

pub trait OnReadProgress {
#[must_use]
    fn on_read_progressed(&mut self, progress: f32) -> UnitResult;
}

Called occasionally when reading a file. Implemented by any closure that matches |progress: f32| -> UnitResult.

Required methods

#[must_use] fn on_read_progressed(&mut self, progress: f32) -> UnitResult

The progress is a float from 0 to 1. May return Error::Abort to cancel reading the file.

Loading content...

Implementations on Foreign Types

impl OnReadProgress for ()[src]

Loading content...

Implementors

impl<F> OnReadProgress for F where
    F: FnMut(f32) -> UnitResult
[src]

Loading content...