pub struct LayerCharge {
pub layer: LayerId,
pub units: u32,
pub window: Option<u64>,
}Expand description
What one layer charged for one attempt.
Fields§
§layer: LayerIdThe layer charged.
units: u32Tokens taken.
window: Option<u64>The window the tokens were taken from, for a layer that counts by window (such as a venue’s UTC minute).
Trait Implementations§
Source§impl Clone for LayerCharge
impl Clone for LayerCharge
impl Copy for LayerCharge
Source§impl Debug for LayerCharge
impl Debug for LayerCharge
impl Eq for LayerCharge
Source§impl PartialEq for LayerCharge
impl PartialEq for LayerCharge
impl StructuralPartialEq for LayerCharge
Auto Trait Implementations§
impl Freeze for LayerCharge
impl RefUnwindSafe for LayerCharge
impl Send for LayerCharge
impl Sync for LayerCharge
impl Unpin for LayerCharge
impl UnsafeUnpin for LayerCharge
impl UnwindSafe for LayerCharge
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