Enum opencv::core::DeviceInfo_ComputeMode
source · #[repr(C)]pub enum DeviceInfo_ComputeMode {
ComputeModeDefault = 0,
ComputeModeExclusive = 1,
ComputeModeProhibited = 2,
ComputeModeExclusiveProcess = 3,
}Variants§
ComputeModeDefault = 0
< default compute mode (Multiple threads can use cudaSetDevice with this device)
ComputeModeExclusive = 1
< compute-exclusive-thread mode (Only one thread in one process will be able to use cudaSetDevice with this device)
ComputeModeProhibited = 2
< compute-prohibited mode (No threads can use cudaSetDevice with this device)
ComputeModeExclusiveProcess = 3
< compute-exclusive-process mode (Many threads in one process will be able to use cudaSetDevice with this device)
Trait Implementations§
source§impl Clone for DeviceInfo_ComputeMode
impl Clone for DeviceInfo_ComputeMode
source§fn clone(&self) -> DeviceInfo_ComputeMode
fn clone(&self) -> DeviceInfo_ComputeMode
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 DeviceInfo_ComputeMode
impl Debug for DeviceInfo_ComputeMode
source§impl PartialEq for DeviceInfo_ComputeMode
impl PartialEq for DeviceInfo_ComputeMode
source§fn eq(&self, other: &DeviceInfo_ComputeMode) -> bool
fn eq(&self, other: &DeviceInfo_ComputeMode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for DeviceInfo_ComputeMode
impl Eq for DeviceInfo_ComputeMode
impl StructuralEq for DeviceInfo_ComputeMode
impl StructuralPartialEq for DeviceInfo_ComputeMode
Auto Trait Implementations§
impl RefUnwindSafe for DeviceInfo_ComputeMode
impl Send for DeviceInfo_ComputeMode
impl Sync for DeviceInfo_ComputeMode
impl Unpin for DeviceInfo_ComputeMode
impl UnwindSafe for DeviceInfo_ComputeMode
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