pub struct Bucket {
pub policy: [u8; 32],
pub key: [u8; 32],
pub rule_idx: u8,
pub window_start: u64,
pub calls: u64,
pub amount: u64,
}Expand description
Counters of one bucket account.
Fields§
§policy: [u8; 32]§key: [u8; 32]§rule_idx: u8§window_start: u64Start of the counted window, in the rule’s clock.
calls: u64§amount: u64Implementations§
Trait Implementations§
impl Eq for Bucket
impl StructuralPartialEq for Bucket
Auto Trait Implementations§
impl Freeze for Bucket
impl RefUnwindSafe for Bucket
impl Send for Bucket
impl Sync for Bucket
impl Unpin for Bucket
impl UnsafeUnpin for Bucket
impl UnwindSafe for Bucket
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