pub enum PoolEntry<Loc, Dep: ?Sized> {
Process(Process<Loc>),
ProcessWithDep {
process: Process<Loc>,
dependency: Box<Dep>,
},
}
Expand description
Entry of a ProcessPool
when some of the processes depend on something.
It is used as an input to the ProcessPool::run_with_deps
method.
See dep
module documentation.
Variants§
Process(Process<Loc>)
An indipendent long-running process.
ProcessWithDep
A long-running process that depends on some other thing.
Auto Trait Implementations§
impl<Loc, Dep> Freeze for PoolEntry<Loc, Dep>
impl<Loc, Dep> RefUnwindSafe for PoolEntry<Loc, Dep>
impl<Loc, Dep> Send for PoolEntry<Loc, Dep>
impl<Loc, Dep> Sync for PoolEntry<Loc, Dep>
impl<Loc, Dep> Unpin for PoolEntry<Loc, Dep>
impl<Loc, Dep> UnwindSafe for PoolEntry<Loc, Dep>
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