pub struct HostExecManyEngine { /* private fields */ }Expand description
Bounded stable-order host execution fanout coordinator.
Implementations§
Source§impl HostExecManyEngine
impl HostExecManyEngine
Sourcepub fn new(
max_concurrency: usize,
per_target_timeout: Duration,
) -> Result<Self, InfraError>
pub fn new( max_concurrency: usize, per_target_timeout: Duration, ) -> Result<Self, InfraError>
Creates an engine with explicit concurrency and per-target timeout bounds.
Sourcepub async fn execute(
&self,
client: &dyn HostExecMutator,
targets: Vec<(HostRecord, HostExecRequest)>,
cancellation: CancellationToken,
) -> MutationResult<HostExecManyOutcome>
pub async fn execute( &self, client: &dyn HostExecMutator, targets: Vec<(HostRecord, HostExecRequest)>, cancellation: CancellationToken, ) -> MutationResult<HostExecManyOutcome>
Executes distinct host/request payloads and retains every terminal outcome.
Trait Implementations§
Source§impl Clone for HostExecManyEngine
impl Clone for HostExecManyEngine
Source§fn clone(&self) -> HostExecManyEngine
fn clone(&self) -> HostExecManyEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostExecManyEngine
impl Debug for HostExecManyEngine
impl Copy for HostExecManyEngine
Auto Trait Implementations§
impl Freeze for HostExecManyEngine
impl RefUnwindSafe for HostExecManyEngine
impl Send for HostExecManyEngine
impl Sync for HostExecManyEngine
impl Unpin for HostExecManyEngine
impl UnsafeUnpin for HostExecManyEngine
impl UnwindSafe for HostExecManyEngine
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