Trait Budget

pub trait Budget

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

Required Methods

fn deposit(&self)

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

fn withdraw(&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