Struct budget_executor::blocking::singlethreaded::IncompleteFuture
source · [−]pub struct IncompleteFuture<Budget, F>(_)
where
Budget: Budgetable,
F: Future;
Expand description
A future that was budgeted with Runtime::run_with_budget()
that has not yet
completed.
Implementations
sourceimpl<Budget, F> IncompleteFuture<Budget, F> where
Budget: Budgetable,
F: Future,
impl<Budget, F> IncompleteFuture<Budget, F> where
Budget: Budgetable,
F: Future,
sourcepub fn continue_with_additional_budget(
self,
additional_budget: usize
) -> Progress<Budget, F>
pub fn continue_with_additional_budget(
self,
additional_budget: usize
) -> Progress<Budget, F>
Adds additional_budget
to the remaining balance and continues
executing the future.
sourcepub fn wait_for_budget(self) -> Progress<Budget, F>
pub fn wait_for_budget(self) -> Progress<Budget, F>
Waits for additional budget to be allocated through
ReplenishableBudget::replenish()
.
Auto Trait Implementations
impl<Budget, F> !RefUnwindSafe for IncompleteFuture<Budget, F>
impl<Budget, F> !Send for IncompleteFuture<Budget, F>
impl<Budget, F> !Sync for IncompleteFuture<Budget, F>
impl<Budget, F> Unpin for IncompleteFuture<Budget, F>
impl<Budget, F> !UnwindSafe for IncompleteFuture<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