#[non_exhaustive]pub enum CapPeriod {
Day,
Week,
Month,
}Expand description
The civil period a cap bucket covers.
The enum is #[non_exhaustive]: 0.2+ may add periods — a quarter, a rolling
window — without a breaking Rust bump, so a match outside this crate needs a
_ arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Day
One civil day.
Week
Seven civil days from the configured week_starts weekday.
Month
One civil month.
Implementations§
Trait Implementations§
impl Copy for CapPeriod
impl Eq for CapPeriod
impl StructuralPartialEq for CapPeriod
Auto Trait Implementations§
impl Forget for CapPeriod
impl Freeze for CapPeriod
impl Move for CapPeriod
impl RefUnwindSafe for CapPeriod
impl Send for CapPeriod
impl Sync for CapPeriod
impl Unpin for CapPeriod
impl UnsafeUnpin for CapPeriod
impl UnwindSafe for CapPeriod
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