pub enum PromotionFailure {
BudgetExceeded,
ScratchPoolNotFound,
ScratchPoolFull,
TooLarge,
InternalError,
}Expand description
Reason for promotion failure.
Variants§
BudgetExceeded
Budget exceeded for destination allocator
ScratchPoolNotFound
Scratch pool not found
ScratchPoolFull
Scratch pool full
TooLarge
Allocation too large for destination
InternalError
Internal error
Trait Implementations§
Source§impl Clone for PromotionFailure
impl Clone for PromotionFailure
Source§fn clone(&self) -> PromotionFailure
fn clone(&self) -> PromotionFailure
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PromotionFailure
impl Debug for PromotionFailure
Source§impl Display for PromotionFailure
impl Display for PromotionFailure
Source§impl PartialEq for PromotionFailure
impl PartialEq for PromotionFailure
impl Copy for PromotionFailure
impl Eq for PromotionFailure
impl StructuralPartialEq for PromotionFailure
Auto Trait Implementations§
impl Freeze for PromotionFailure
impl RefUnwindSafe for PromotionFailure
impl Send for PromotionFailure
impl Sync for PromotionFailure
impl Unpin for PromotionFailure
impl UnwindSafe for PromotionFailure
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