Trait jpeg_decoder::worker::Worker

source ·
pub trait Worker {
    // Required methods
    fn start(&mut self, row_data: RowData) -> Result<(), Error>;
    fn append_row(&mut self, row: (usize, Vec<i16>)) -> Result<(), Error>;
    fn get_result(&mut self, index: usize) -> Result<Vec<u8>, Error>;

    // Provided method
    fn append_rows(
        &mut self,
        row: &mut dyn Iterator<Item = (usize, Vec<i16>)>,
    ) -> Result<(), Error> { ... }
}

Required Methods§

source

fn start(&mut self, row_data: RowData) -> Result<(), Error>

source

fn append_row(&mut self, row: (usize, Vec<i16>)) -> Result<(), Error>

source

fn get_result(&mut self, index: usize) -> Result<Vec<u8>, Error>

Provided Methods§

source

fn append_rows( &mut self, row: &mut dyn Iterator<Item = (usize, Vec<i16>)>, ) -> Result<(), Error>

Default implementation for spawning multiple tasks.

Implementors§