Enum budget_executor::blocking::singlethreaded::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 fn wait_until_complete(self) -> BudgetResult<F::Output, Budget>
pub 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>
impl<Budget, F> !Send for Progress<Budget, F>
impl<Budget, F> !Sync for Progress<Budget, F>
impl<Budget, F> Unpin for Progress<Budget, F> where
<F as Future>::Output: Unpin,
impl<Budget, F> !UnwindSafe for Progress<Budget, F>
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