#[repr(C)]pub struct cudaMemPoolProps {
pub allocType: cudaMemAllocationType,
pub handleTypes: cudaMemAllocationHandleType,
pub location: cudaMemLocation,
pub win32SecurityAttributes: *mut c_void,
pub reserved: [c_uchar; 64],
}
Expand description
Specifies the properties of allocations made from the pool.
Fields§
§allocType: cudaMemAllocationType
< Allocation type. Currently must be specified as cudaMemAllocationTypePinned
handleTypes: cudaMemAllocationHandleType
< Handle types that will be supported by allocations from the pool.
location: cudaMemLocation
< Location allocations should reside.
win32SecurityAttributes: *mut c_void
Windows-specific LPSECURITYATTRIBUTES required when ::cudaMemHandleTypeWin32 is specified. This security attribute defines the scope of which exported allocations may be tranferred to other processes. In all other cases, this field is required to be zero.
reserved: [c_uchar; 64]
< reserved for future use, must be 0
Trait Implementations§
Source§impl Clone for cudaMemPoolProps
impl Clone for cudaMemPoolProps
Source§fn clone(&self) -> cudaMemPoolProps
fn clone(&self) -> cudaMemPoolProps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for cudaMemPoolProps
Auto Trait Implementations§
impl Freeze for cudaMemPoolProps
impl RefUnwindSafe for cudaMemPoolProps
impl !Send for cudaMemPoolProps
impl !Sync for cudaMemPoolProps
impl Unpin for cudaMemPoolProps
impl UnwindSafe for cudaMemPoolProps
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