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<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn: &'life1 mut StandardCommandTransaction,
units: UnitsOfWork,
engine: &'life2 FlowEngine,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn process<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txn: &'life1 mut StandardCommandTransaction,
units: UnitsOfWork,
engine: &'life2 FlowEngine,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
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