#[non_exhaustive]pub enum AllocationKind {
DiscoveryResults,
SourceDescriptor,
ImageScratch,
AllocatorLeases,
QueuedCompletions,
ReceiveBuffer,
}Expand description
The storage an operation could not allocate.
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.
DiscoveryResults
Finder or Discovery Server snapshot and discovery-result storage.
SourceDescriptor
A source descriptor copied from a single SDK query.
ImageScratch
Reusable image encoder scratch storage.
AllocatorLeases
Custom allocator lease bookkeeping.
QueuedCompletions
Queued sender descriptors and completion bookkeeping.
ReceiveBuffer
A crate-owned custom receive buffer.
Trait Implementations§
Source§impl Clone for AllocationKind
impl Clone for AllocationKind
impl Copy for AllocationKind
Source§impl Debug for AllocationKind
impl Debug for AllocationKind
Source§impl Display for AllocationKind
impl Display for AllocationKind
impl Eq for AllocationKind
Source§impl Error for AllocationKind
impl Error for AllocationKind
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 Hash for AllocationKind
impl Hash for AllocationKind
Source§impl PartialEq for AllocationKind
impl PartialEq for AllocationKind
impl StructuralPartialEq for AllocationKind
Auto Trait Implementations§
impl Freeze for AllocationKind
impl RefUnwindSafe for AllocationKind
impl Send for AllocationKind
impl Sync for AllocationKind
impl Unpin for AllocationKind
impl UnsafeUnpin for AllocationKind
impl UnwindSafe for AllocationKind
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