[−][src]Trait exr::image::OnWriteProgress
Called occasionally when writing a file.
Implemented by any closure that matches |progress: f32, bytes_written: usize| -> UnitResult
.
Required methods
#[must_use]
fn on_write_progressed(
&mut self,
progress: f32,
bytes_written: usize
) -> UnitResult
&mut self,
progress: f32,
bytes_written: usize
) -> UnitResult
The progress is a float from 0 to 1.
May return Error::Abort
to cancel writing the file.
Implementations on Foreign Types
impl OnWriteProgress for ()
[src]
fn on_write_progressed(
&mut self,
_progress: f32,
_bytes_written: usize
) -> UnitResult
[src]
&mut self,
_progress: f32,
_bytes_written: usize
) -> UnitResult
Implementors
impl<F> OnWriteProgress for F where
F: FnMut(f32, usize) -> UnitResult,
[src]
F: FnMut(f32, usize) -> UnitResult,
fn on_write_progressed(
&mut self,
progress: f32,
bytes_written: usize
) -> UnitResult
[src]
&mut self,
progress: f32,
bytes_written: usize
) -> UnitResult