Enum hip_sys::hiprt::hipMemAllocationHandleType
source · #[non_exhaustive]#[repr(u32)]pub enum hipMemAllocationHandleType {
hipMemHandleTypeNone,
hipMemHandleTypePosixFileDescriptor,
hipMemHandleTypeWin32,
hipMemHandleTypeWin32Kmt,
}Expand description
@brief Flags for specifying handle types for memory pool allocations @enum @ingroup Enumerations
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.
hipMemHandleTypeNone
< Does not allow any export mechanism
hipMemHandleTypePosixFileDescriptor
< Allows a file descriptor for exporting. Permitted only on POSIX systems
hipMemHandleTypeWin32
< Allows a Win32 NT handle for exporting. (HANDLE)
hipMemHandleTypeWin32Kmt
< Allows a Win32 KMT handle for exporting. (D3DKMT_HANDLE)
Trait Implementations§
source§impl Clone for hipMemAllocationHandleType
impl Clone for hipMemAllocationHandleType
source§fn clone(&self) -> hipMemAllocationHandleType
fn clone(&self) -> hipMemAllocationHandleType
Returns a copy 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 hipMemAllocationHandleType
impl Debug for hipMemAllocationHandleType
source§impl Hash for hipMemAllocationHandleType
impl Hash for hipMemAllocationHandleType
source§impl Ord for hipMemAllocationHandleType
impl Ord for hipMemAllocationHandleType
source§fn cmp(&self, other: &hipMemAllocationHandleType) -> Ordering
fn cmp(&self, other: &hipMemAllocationHandleType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<hipMemAllocationHandleType> for hipMemAllocationHandleType
impl PartialEq<hipMemAllocationHandleType> for hipMemAllocationHandleType
source§fn eq(&self, other: &hipMemAllocationHandleType) -> bool
fn eq(&self, other: &hipMemAllocationHandleType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<hipMemAllocationHandleType> for hipMemAllocationHandleType
impl PartialOrd<hipMemAllocationHandleType> for hipMemAllocationHandleType
source§fn partial_cmp(&self, other: &hipMemAllocationHandleType) -> Option<Ordering>
fn partial_cmp(&self, other: &hipMemAllocationHandleType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for hipMemAllocationHandleType
impl Eq for hipMemAllocationHandleType
impl StructuralEq for hipMemAllocationHandleType
impl StructuralPartialEq for hipMemAllocationHandleType
Auto Trait Implementations§
impl RefUnwindSafe for hipMemAllocationHandleType
impl Send for hipMemAllocationHandleType
impl Sync for hipMemAllocationHandleType
impl Unpin for hipMemAllocationHandleType
impl UnwindSafe for hipMemAllocationHandleType
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