pub struct QuotaBuckets { /* private fields */ }Expand description
Fixed-capacity set of distinct provider quota buckets.
The aggregate is deliberately not Copy because its bounded inline
storage can be several kilobytes. Clone it only when a separate owned
snapshot is required.
ⓘ
use cloud_sdk::rate_limit::QuotaBuckets;
let buckets = QuotaBuckets::new();
let moved = buckets;
let _ = buckets.len();
let _ = moved;Implementations§
Source§impl QuotaBuckets
impl QuotaBuckets
Sourcepub fn try_push(&mut self, bucket: QuotaBucket) -> Result<(), QuotaError>
pub fn try_push(&mut self, bucket: QuotaBucket) -> Result<(), QuotaError>
Appends one bucket atomically.
Sourcepub fn iter(&self) -> impl Iterator<Item = &QuotaBucket>
pub fn iter(&self) -> impl Iterator<Item = &QuotaBucket>
Iterates retained buckets in provider order.
Trait Implementations§
Source§impl Clone for QuotaBuckets
impl Clone for QuotaBuckets
Source§fn clone(&self) -> QuotaBuckets
fn clone(&self) -> QuotaBuckets
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuotaBuckets
impl Debug for QuotaBuckets
Source§impl Default for QuotaBuckets
impl Default for QuotaBuckets
impl Eq for QuotaBuckets
Source§impl PartialEq for QuotaBuckets
impl PartialEq for QuotaBuckets
impl StructuralPartialEq for QuotaBuckets
Auto Trait Implementations§
impl Freeze for QuotaBuckets
impl RefUnwindSafe for QuotaBuckets
impl Send for QuotaBuckets
impl Sync for QuotaBuckets
impl Unpin for QuotaBuckets
impl UnsafeUnpin for QuotaBuckets
impl UnwindSafe for QuotaBuckets
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