pub struct PointerAttributes {
pub memory_type: MemoryType,
pub device: i32,
pub device_pointer: *mut c_void,
pub host_pointer: *mut c_void,
}Expand description
Typed view over cudaPointerAttributes.
Fields§
§memory_type: MemoryTypeMemory kind CUDA classified the pointer as.
device: i32Device ordinal that owns the allocation (-1 for unregistered).
device_pointer: *mut c_voidDevice-side pointer aliasing the allocation (may equal the host pointer for managed memory).
host_pointer: *mut c_voidHost-side pointer aliasing the allocation, when one exists (mapped pinned / managed); null otherwise.
Trait Implementations§
Source§impl Clone for PointerAttributes
impl Clone for PointerAttributes
Source§fn clone(&self) -> PointerAttributes
fn clone(&self) -> PointerAttributes
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 PointerAttributes
Auto Trait Implementations§
impl !Send for PointerAttributes
impl !Sync for PointerAttributes
impl Freeze for PointerAttributes
impl RefUnwindSafe for PointerAttributes
impl Unpin for PointerAttributes
impl UnsafeUnpin for PointerAttributes
impl UnwindSafe for PointerAttributes
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