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