Struct jpeg_decoder::worker::multithreaded::MpscWorker
source · pub struct MpscWorker {
senders: [Option<Sender<WorkerMsg>>; 4],
}
Fields§
§senders: [Option<Sender<WorkerMsg>>; 4]
Implementations§
source§impl MpscWorker
impl MpscWorker
fn start_with( &mut self, row_data: RowData, spawn_worker: impl FnOnce(usize) -> Result<Sender<WorkerMsg>, Error>, ) -> Result<(), Error>
fn append_row(&mut self, row: (usize, Vec<i16>)) -> Result<(), Error>
fn get_result_with( &mut self, index: usize, collect: impl FnOnce(Receiver<Vec<u8>>) -> Vec<u8>, ) -> Result<Vec<u8>, Error>
Trait Implementations§
source§impl Default for MpscWorker
impl Default for MpscWorker
source§fn default() -> MpscWorker
fn default() -> MpscWorker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MpscWorker
impl RefUnwindSafe for MpscWorker
impl Send for MpscWorker
impl Sync for MpscWorker
impl Unpin for MpscWorker
impl UnwindSafe for MpscWorker
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more