pub enum QuotaError {
BucketIdEmpty,
BucketIdTooLong,
InvalidBucketId,
LimitZero,
RemainingExceedsLimit,
TooManyBuckets,
DuplicateBucket,
TooManyExtensions,
DuplicateExtension,
}Expand description
Invalid quota bucket or bounded collection.
Variants§
BucketIdEmpty
A bucket identity was empty.
BucketIdTooLong
A bucket identity exceeded its fixed bound.
InvalidBucketId
A bucket identity contained unsupported bytes.
LimitZero
A bucket limit was zero.
RemainingExceedsLimit
Remaining requests exceeded the bucket limit.
TooManyBuckets
More than the bounded number of buckets was supplied.
DuplicateBucket
A bucket identity appeared more than once.
TooManyExtensions
More than the bounded number of extensions was supplied.
DuplicateExtension
An extension name appeared more than once in a bucket.
Trait Implementations§
Source§impl Clone for QuotaError
impl Clone for QuotaError
Source§fn clone(&self) -> QuotaError
fn clone(&self) -> QuotaError
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 moreimpl Copy for QuotaError
Source§impl Debug for QuotaError
impl Debug for QuotaError
Source§impl Display for QuotaError
impl Display for QuotaError
impl Eq for QuotaError
Source§impl Error for QuotaError
impl Error for QuotaError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for QuotaError
impl PartialEq for QuotaError
impl StructuralPartialEq for QuotaError
Auto Trait Implementations§
impl Freeze for QuotaError
impl RefUnwindSafe for QuotaError
impl Send for QuotaError
impl Sync for QuotaError
impl Unpin for QuotaError
impl UnsafeUnpin for QuotaError
impl UnwindSafe for QuotaError
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