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: ?Sized> RefUnwindSafe for PoolEntry<Loc, Dep>where Dep: RefUnwindSafe, Loc: RefUnwindSafe,
impl<Loc, Dep: ?Sized> Send for PoolEntry<Loc, Dep>where Dep: Send, Loc: Send,
impl<Loc, Dep: ?Sized> Sync for PoolEntry<Loc, Dep>where Dep: Sync, Loc: Sync,
impl<Loc, Dep: ?Sized> Unpin for PoolEntry<Loc, Dep>where Loc: Unpin,
impl<Loc, Dep: ?Sized> UnwindSafe for PoolEntry<Loc, Dep>where Dep: UnwindSafe, Loc: UnwindSafe,
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