Enum budget_executor::asynchronous::threadsafe::Progress
source · [−]pub enum Progress<Budget, F> where
Budget: Budgetable,
F: Future, {
NoBudget(IncompleteFuture<Budget, F>),
Complete(BudgetResult<F::Output, Budget>),
}
Expand description
The progress of a future’s execution.
Variants
NoBudget(IncompleteFuture<Budget, F>)
The future was interrupted because it requested to spend more budget than was available.
Complete(BudgetResult<F::Output, Budget>)
The future has completed.
Implementations
sourceimpl<Budget, F> Progress<Budget, F> where
Budget: Budgetable,
F: Future,
impl<Budget, F> Progress<Budget, F> where
Budget: Budgetable,
F: Future,
sourcepub async fn wait_until_complete(self) -> BudgetResult<F::Output, Budget>
pub async fn wait_until_complete(self) -> BudgetResult<F::Output, Budget>
Continues executing the contained future until it is completed.
This function will never return if the future enters an infinite loop or deadlocks, regardless of whether the budget is exhausted or not.
Auto Trait Implementations
impl<Budget, F> RefUnwindSafe for Progress<Budget, F> where
Budget: RefUnwindSafe,
F: RefUnwindSafe,
<F as Future>::Output: RefUnwindSafe,
impl<Budget, F> Send for Progress<Budget, F> where
Budget: Send,
F: Send,
<F as Future>::Output: Send,
impl<Budget, F> Sync for Progress<Budget, F> where
Budget: Send + Sync,
F: Sync,
<F as Future>::Output: Sync,
impl<Budget, F> Unpin for Progress<Budget, F> where
<F as Future>::Output: Unpin,
impl<Budget, F> UnwindSafe for Progress<Budget, F> where
Budget: UnwindSafe,
F: UnwindSafe,
<F as Future>::Output: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more