pub struct TransferExecutor { /* private fields */ }Expand description
Executes a transfer plan with shared controls.
Implementations§
Source§impl TransferExecutor
impl TransferExecutor
pub fn new(controls: TransferControls) -> Result<Self>
Sourcepub async fn execute<T, F, Fut>(
&self,
plan: TransferPlan<T>,
operation: F,
) -> TransferReport<T>
pub async fn execute<T, F, Fut>( &self, plan: TransferPlan<T>, operation: F, ) -> TransferReport<T>
Execute candidates while bounding all in-flight work across the command.
Sourcepub async fn execute_with_cancellation<T, F, Fut>(
&self,
plan: TransferPlan<T>,
cancellation: TransferCancellation,
operation: F,
) -> TransferReport<T>
pub async fn execute_with_cancellation<T, F, Fut>( &self, plan: TransferPlan<T>, cancellation: TransferCancellation, operation: F, ) -> TransferReport<T>
Execute candidates until completion, failure policy, or cooperative cancellation.
Work already in flight is allowed to settle so callers can await backend cleanup.
Trait Implementations§
Source§impl Clone for TransferExecutor
impl Clone for TransferExecutor
Source§fn clone(&self) -> TransferExecutor
fn clone(&self) -> TransferExecutor
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 moreAuto Trait Implementations§
impl Freeze for TransferExecutor
impl RefUnwindSafe for TransferExecutor
impl Send for TransferExecutor
impl Sync for TransferExecutor
impl Unpin for TransferExecutor
impl UnsafeUnpin for TransferExecutor
impl UnwindSafe for TransferExecutor
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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