[][src]Trait exr::image::OnWriteProgress

pub trait OnWriteProgress {
#[must_use]
    fn on_write_progressed(
        &mut self,
        progress: f32,
        bytes_written: usize
    ) -> UnitResult; }

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

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

Loading content...

Implementations on Foreign Types

impl OnWriteProgress for ()[src]

Loading content...

Implementors

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

Loading content...