Struct solana_perf::data_budget::DataBudget [−][src]
pub struct DataBudget { /* fields omitted */ }
Implementations
Updates the budget if at least given milliseconds has passed since last update. Updater function maps current value of bytes to the new one. Returns current data-budget after the update.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DataBudget
impl Send for DataBudget
impl Sync for DataBudget
impl Unpin for DataBudget
impl UnwindSafe for DataBudget
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more