Trait Budget

trait Budget

For more info about Budget, please see the module-level documentation.

Required Methods

fn deposit(self: &Self)

Store a "deposit" in the budget, which will be used to permit future withdrawals.

fn withdraw(self: &Self) -> bool

Check whether there is enough "balance" in the budget to issue a new retry.

If there is not enough, false is returned.

Implementors