#[non_exhaustive]#[repr(u32)]pub enum StreamCaptureMode {
Global = 0,
ThreadLocal = 1,
Relaxed = 2,
}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.
Trait Implementations§
Source§impl Clone for StreamCaptureMode
impl Clone for StreamCaptureMode
Source§fn clone(&self) -> StreamCaptureMode
fn clone(&self) -> StreamCaptureMode
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 StreamCaptureMode
Source§impl Debug for StreamCaptureMode
impl Debug for StreamCaptureMode
impl Eq for StreamCaptureMode
Source§impl From<CUstreamCaptureMode_enum> for StreamCaptureMode
impl From<CUstreamCaptureMode_enum> for StreamCaptureMode
Source§fn from(value: cudaStreamCaptureMode) -> Self
fn from(value: cudaStreamCaptureMode) -> Self
Converts to this type from the input type.
Source§impl From<StreamCaptureMode> for u32
impl From<StreamCaptureMode> for u32
Source§fn from(enum_value: StreamCaptureMode) -> Self
fn from(enum_value: StreamCaptureMode) -> Self
Converts to this type from the input type.
Source§impl From<StreamCaptureMode> for cudaStreamCaptureMode
impl From<StreamCaptureMode> for cudaStreamCaptureMode
Source§fn from(value: StreamCaptureMode) -> Self
fn from(value: StreamCaptureMode) -> Self
Converts to this type from the input type.
Source§impl Hash for StreamCaptureMode
impl Hash for StreamCaptureMode
Source§impl PartialEq for StreamCaptureMode
impl PartialEq for StreamCaptureMode
Source§fn eq(&self, other: &StreamCaptureMode) -> bool
fn eq(&self, other: &StreamCaptureMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamCaptureMode
Source§impl TryFrom<u32> for StreamCaptureMode
impl TryFrom<u32> for StreamCaptureMode
Source§type Error = TryFromPrimitiveError<StreamCaptureMode>
type Error = TryFromPrimitiveError<StreamCaptureMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for StreamCaptureMode
impl TryFromPrimitive for StreamCaptureMode
const NAME: &'static str = "StreamCaptureMode"
type Primitive = u32
type Error = TryFromPrimitiveError<StreamCaptureMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for StreamCaptureMode
impl RefUnwindSafe for StreamCaptureMode
impl Send for StreamCaptureMode
impl Sync for StreamCaptureMode
impl Unpin for StreamCaptureMode
impl UnsafeUnpin for StreamCaptureMode
impl UnwindSafe for StreamCaptureMode
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