#[non_exhaustive]#[repr(u32)]pub enum StreamCaptureStatus {
None = 0,
Active = 1,
Invalidated = 2,
}Expand description
State of a CUDA stream capture sequence.
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.
None = 0
The stream is not capturing.
Active = 1
The stream is recording work into a graph.
Invalidated = 2
A capture rule was violated. End capture on the initiating stream before reusing it.
Trait Implementations§
Source§impl Clone for StreamCaptureStatus
impl Clone for StreamCaptureStatus
impl Copy for StreamCaptureStatus
Source§impl Debug for StreamCaptureStatus
impl Debug for StreamCaptureStatus
Source§impl Display for StreamCaptureStatus
impl Display for StreamCaptureStatus
impl Eq for StreamCaptureStatus
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
impl StructuralPartialEq for StreamCaptureStatus
Source§impl TryFrom<CUstreamCaptureStatus_enum> for StreamCaptureStatus
impl TryFrom<CUstreamCaptureStatus_enum> for StreamCaptureStatus
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: cudaStreamCaptureStatus) -> Result<Self, UnknownEnumValue>
fn try_from(value: cudaStreamCaptureStatus) -> Result<Self, UnknownEnumValue>
Performs the conversion.
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 Forget for StreamCaptureStatus
impl Freeze for StreamCaptureStatus
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.