pub struct BucketLimit {
pub requests_per_second: f64,
pub burst: u32,
}Expand description
Sustained throughput and burst capacity for one rate-limit bucket.
Fields§
§requests_per_second: f64Sustained throughput in requests per second.
burst: u32Maximum burst capacity (also the initial token count for a bucket).
Must be at least as large as the biggest single call’s cost you expect to make against
this bucket, or that call can never succeed. In particular, a bucket used for a batch
order endpoint needs burst >= the largest batch size you’ll send (Bybit currently
caps batches at 20 orders for linear, 10 for others).
Trait Implementations§
Source§impl Clone for BucketLimit
impl Clone for BucketLimit
impl Copy for BucketLimit
Auto Trait Implementations§
impl Freeze for BucketLimit
impl RefUnwindSafe for BucketLimit
impl Send for BucketLimit
impl Sync for BucketLimit
impl Unpin for BucketLimit
impl UnsafeUnpin for BucketLimit
impl UnwindSafe for BucketLimit
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