pub struct BandwidthSchedulerConfig {
pub max_shard_bandwidth: u64,
pub max_single_grant: u64,
pub max_allowance: u64,
pub max_base_bandwidth: u64,
}Expand description
Configuration specific to BandwidthScheduler
Fields§
§max_shard_bandwidth: u64The maximum amount of data that a shard can send or receive at a single height.
max_single_grant: u64The maximum amount of bandwidth that can be granted on a single link.
Should be at least as big as max_receipt_size.
max_allowance: u64Maximum bandwidth allowance that a link can accumulate.
max_base_bandwidth: u64Max value of base_bandwidth that is granted on all links by default.
Trait Implementations§
Source§impl Clone for BandwidthSchedulerConfig
impl Clone for BandwidthSchedulerConfig
Source§fn clone(&self) -> BandwidthSchedulerConfig
fn clone(&self) -> BandwidthSchedulerConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BandwidthSchedulerConfig
impl Debug for BandwidthSchedulerConfig
Source§impl PartialEq for BandwidthSchedulerConfig
impl PartialEq for BandwidthSchedulerConfig
impl Copy for BandwidthSchedulerConfig
impl StructuralPartialEq for BandwidthSchedulerConfig
Auto Trait Implementations§
impl Freeze for BandwidthSchedulerConfig
impl RefUnwindSafe for BandwidthSchedulerConfig
impl Send for BandwidthSchedulerConfig
impl Sync for BandwidthSchedulerConfig
impl Unpin for BandwidthSchedulerConfig
impl UnwindSafe for BandwidthSchedulerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more