pub struct SameThreadedWorker;Expand description
Same threaded worker that processes units of work sequentially from a deque
This is the initial implementation that can be easily replaced with parallel implementations later.
Implementations§
Trait Implementations§
Source§impl WorkerPool for SameThreadedWorker
impl WorkerPool for SameThreadedWorker
Source§fn process(
&self,
txn: &mut StandardCommandTransaction,
units: UnitsOfWork,
engine: &FlowEngine,
) -> Result<()>
fn process( &self, txn: &mut StandardCommandTransaction, units: UnitsOfWork, engine: &FlowEngine, ) -> Result<()>
Process a batch of units of work grouped by flow Read more
Auto Trait Implementations§
impl Freeze for SameThreadedWorker
impl RefUnwindSafe for SameThreadedWorker
impl Send for SameThreadedWorker
impl Sync for SameThreadedWorker
impl Unpin for SameThreadedWorker
impl UnwindSafe for SameThreadedWorker
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