#[non_exhaustive]pub enum Options {
LinearBuckets(Box<Linear>),
ExponentialBuckets(Box<Exponential>),
ExplicitBuckets(Box<Explicit>),
}Expand description
Exactly one of these three fields must be set.
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.
LinearBuckets(Box<Linear>)
The linear bucket.
ExponentialBuckets(Box<Exponential>)
The exponential buckets.
ExplicitBuckets(Box<Explicit>)
The explicit buckets.
Trait Implementations§
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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