[][src]Function runestick::budget::with

pub fn with<T>(budget: usize, value: T) -> Budget<T>

Notable traits for Budget<T>

impl<T> Future for Budget<T> where
    T: Future
type Output = T::Output;

Wrap the given value with a budget.

The value can either be a function, after which you can use Budget::call, or it can be a Future which can be polled.