pub enum AllocationSource {
Unknown,
RmmOutOfMemory,
RmmBadAlloc,
StdBadAlloc,
}Expand description
Native allocator exception family behind an allocation failure.
RmmOutOfMemory is the callback-backed path through the query memory
resource. The bad_alloc variants identify direct throwing paths; when
they traverse a resident cache allocation scope that scope publishes an
exact allocator event independently. Unknown stays fail-closed.
Variants§
Unknown
No allocator family was established; attribution remains unknown.
RmmOutOfMemory
RMM reported an out-of-memory exception through the query resource path.
RmmBadAlloc
A direct RMM allocation threw rmm::bad_alloc.
StdBadAlloc
A native allocation threw std::bad_alloc.
Implementations§
Trait Implementations§
Source§impl Clone for AllocationSource
impl Clone for AllocationSource
impl Copy for AllocationSource
Source§impl Debug for AllocationSource
impl Debug for AllocationSource
impl Eq for AllocationSource
Source§impl PartialEq for AllocationSource
impl PartialEq for AllocationSource
impl StructuralPartialEq for AllocationSource
Auto Trait Implementations§
impl Freeze for AllocationSource
impl RefUnwindSafe for AllocationSource
impl Send for AllocationSource
impl Sync for AllocationSource
impl Unpin for AllocationSource
impl UnsafeUnpin for AllocationSource
impl UnwindSafe for AllocationSource
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