#[repr(C)]pub struct CUmemPoolProps_st {
pub allocType: CUmemAllocationType,
pub handleTypes: CUmemAllocationHandleType,
pub location: CUmemLocation,
pub win32SecurityAttributes: *mut c_void,
pub maxSize: usize,
pub usage: c_ushort,
pub reserved: [c_uchar; 54],
}
Expand description
Specifies the properties of allocations made from the pool.
Fields§
§allocType: CUmemAllocationType
< Allocation type. Currently must be specified as CU_MEM_ALLOCATION_TYPE_PINNED
handleTypes: CUmemAllocationHandleType
< Handle types that will be supported by allocations from the pool.
location: CUmemLocation
< Location where allocations should reside.
win32SecurityAttributes: *mut c_void
Windows-specific LPSECURITYATTRIBUTES required when ::CU_MEM_HANDLE_TYPE_WIN32 is specified. This security attribute defines the scope of which exported allocations may be transferred to other processes. In all other cases, this field is required to be zero.
maxSize: usize
< Maximum pool size. When set to 0, defaults to a system dependent value.
usage: c_ushort
< Bitmask indicating intended usage for the pool.
reserved: [c_uchar; 54]
< reserved for future use, must be 0
Trait Implementations§
Source§impl Clone for CUmemPoolProps_st
impl Clone for CUmemPoolProps_st
Source§fn clone(&self) -> CUmemPoolProps_st
fn clone(&self) -> CUmemPoolProps_st
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 moreSource§impl Debug for CUmemPoolProps_st
impl Debug for CUmemPoolProps_st
impl Copy for CUmemPoolProps_st
Auto Trait Implementations§
impl Freeze for CUmemPoolProps_st
impl RefUnwindSafe for CUmemPoolProps_st
impl !Send for CUmemPoolProps_st
impl !Sync for CUmemPoolProps_st
impl Unpin for CUmemPoolProps_st
impl UnwindSafe for CUmemPoolProps_st
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