pub enum AllocationFailureSource {
Unknown,
ReservationLimit,
Physical,
}Expand description
Which owner or device condition caused an allocation failure.
This is separate from AllocationSource, which records only the C++
exception type caught at the native boundary. Unknown is fail-closed and
must not be inferred from an error message or from ErrorStatus.
Variants§
Unknown
The native error did not carry an attributable failure source.
ReservationLimit
The query or owner reservation limit rejected the allocation.
Physical
The device allocator reported physical memory pressure.
Implementations§
Trait Implementations§
Source§impl Clone for AllocationFailureSource
impl Clone for AllocationFailureSource
impl Copy for AllocationFailureSource
Source§impl Debug for AllocationFailureSource
impl Debug for AllocationFailureSource
Source§impl Default for AllocationFailureSource
impl Default for AllocationFailureSource
Source§impl Display for AllocationFailureSource
impl Display for AllocationFailureSource
impl Eq for AllocationFailureSource
Source§impl Hash for AllocationFailureSource
impl Hash for AllocationFailureSource
Source§impl PartialEq for AllocationFailureSource
impl PartialEq for AllocationFailureSource
impl StructuralPartialEq for AllocationFailureSource
Auto Trait Implementations§
impl Freeze for AllocationFailureSource
impl RefUnwindSafe for AllocationFailureSource
impl Send for AllocationFailureSource
impl Sync for AllocationFailureSource
impl Unpin for AllocationFailureSource
impl UnsafeUnpin for AllocationFailureSource
impl UnwindSafe for AllocationFailureSource
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.