#[repr(u8)]pub enum MemoryDomain {
Host = 1,
Device = 2,
Shared = 3,
}Variants§
Host = 1
Provider memory optimized for host transfers.
If the usage includes program access, the returned allocation is still directly bindable; this value never permits per-submission staging.
Device = 2
Provider memory optimized for accelerator access.
Explicit read/write transfers may stage through provider-owned temporary memory.
One provider-owned allocation that is host visible and directly accelerator bindable.
This does not imply cross-process export, guest-memory import, cache coherence, or any platform external-memory handle.
Trait Implementations§
Source§impl Clone for MemoryDomain
impl Clone for MemoryDomain
Source§fn clone(&self) -> MemoryDomain
fn clone(&self) -> MemoryDomain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryDomain
Source§impl Debug for MemoryDomain
impl Debug for MemoryDomain
impl Eq for MemoryDomain
Source§impl PartialEq for MemoryDomain
impl PartialEq for MemoryDomain
impl StructuralPartialEq for MemoryDomain
Auto Trait Implementations§
impl Freeze for MemoryDomain
impl RefUnwindSafe for MemoryDomain
impl Send for MemoryDomain
impl Sync for MemoryDomain
impl Unpin for MemoryDomain
impl UnsafeUnpin for MemoryDomain
impl UnwindSafe for MemoryDomain
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