#[non_exhaustive]pub enum ResourceExhaustionKind {
AllocationLimit,
AllocationFailure,
}Expand description
The kind of resource exhaustion which prevented an operation from completing.
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.
AllocationLimit
An application-configured allocation limit was exceeded.
AllocationFailure
An allocation size could not be represented or memory could not be reserved.
Trait Implementations§
Source§impl Clone for ResourceExhaustionKind
impl Clone for ResourceExhaustionKind
impl Copy for ResourceExhaustionKind
Source§impl Debug for ResourceExhaustionKind
impl Debug for ResourceExhaustionKind
impl Eq for ResourceExhaustionKind
Source§impl Ord for ResourceExhaustionKind
impl Ord for ResourceExhaustionKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ResourceExhaustionKind
impl PartialEq for ResourceExhaustionKind
Source§impl PartialOrd for ResourceExhaustionKind
impl PartialOrd for ResourceExhaustionKind
impl StructuralPartialEq for ResourceExhaustionKind
Auto Trait Implementations§
impl Freeze for ResourceExhaustionKind
impl RefUnwindSafe for ResourceExhaustionKind
impl Send for ResourceExhaustionKind
impl Sync for ResourceExhaustionKind
impl Unpin for ResourceExhaustionKind
impl UnsafeUnpin for ResourceExhaustionKind
impl UnwindSafe for ResourceExhaustionKind
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