pub struct PartialExecutor<T> { /* private fields */ }Expand description
Partial-results executor — every task runs to completion; per-task success/failure exposed in the returned map.
Constructed via Executor::with_partial_results.
Implementations§
Source§impl<T> PartialExecutor<T>where
T: Send + 'static,
impl<T> PartialExecutor<T>where
T: Send + 'static,
Sourcepub fn with_cancellation(self, token: CancellationToken) -> Self
pub fn with_cancellation(self, token: CancellationToken) -> Self
Attach a cancellation token. Cancelling it causes all tasks to abort.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Apply an overall timeout.
Trait Implementations§
Source§impl<T> IntoFuture for PartialExecutor<T>where
T: Send + 'static,
impl<T> IntoFuture for PartialExecutor<T>where
T: Send + 'static,
Source§type Output = Result<HashMap<&'static str, Result<T, Box<dyn Error + Send + Sync>>>, Error>
type Output = Result<HashMap<&'static str, Result<T, Box<dyn Error + Send + Sync>>>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <PartialExecutor<T> as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <PartialExecutor<T> as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<T> !RefUnwindSafe for PartialExecutor<T>
impl<T> !Sync for PartialExecutor<T>
impl<T> !UnwindSafe for PartialExecutor<T>
impl<T> Freeze for PartialExecutor<T>
impl<T> Send for PartialExecutor<T>
impl<T> Unpin for PartialExecutor<T>
impl<T> UnsafeUnpin for PartialExecutor<T>
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