Struct steward::process::ProcessPool
source · pub struct ProcessPool;
Expand description
Struct to run a pool of long-running processes.
ⓘ
ProcessPool::run(vec![process_1, process_2]).await
Implementations§
source§impl ProcessPool
impl ProcessPool
sourcepub async fn run<Loc>(pool: Vec<Process<Loc>>) -> Result<()>where
Loc: Location + 'static,
pub async fn run<Loc>(pool: Vec<Process<Loc>>) -> Result<()>where Loc: Location + 'static,
Runs a pool of long-running processes.
sourcepub async fn run_with_deps<Loc>(
pool: Vec<PoolEntry<Loc, dyn Dependency>>
) -> Result<()>where
Loc: Location + 'static,
pub async fn run_with_deps<Loc>( pool: Vec<PoolEntry<Loc, dyn Dependency>> ) -> Result<()>where Loc: Location + 'static,
Runs a pool of long-running processes, some of which depend on something,
such as an HTTP service being available or a file existing.
See dep
module documentation.
Auto Trait Implementations§
impl RefUnwindSafe for ProcessPool
impl Send for ProcessPool
impl Sync for ProcessPool
impl Unpin for ProcessPool
impl UnwindSafe for ProcessPool
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