Struct solana_gossip::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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
type Output = T
type Output = T
Should always be Self