#[non_exhaustive]#[repr(u32)]pub enum ProcessState {
Running = 0,
Locked = 1,
Checkpointed = 2,
Failed = 3,
Unknown(u32),
}Expand description
CUDA process state used by the checkpoint and restore driver APIs.
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.
Running = 0
The process can make CUDA API calls.
Locked = 1
CUDA API locks are taken and further CUDA API calls will block.
Checkpointed = 2
GPU memory has been moved to host memory and device handles were released.
Failed = 3
The process entered an unrecoverable error during checkpoint or restore.
Unknown(u32)
Unknown process state returned by a newer CUDA driver version.
Trait Implementations§
Source§impl Clone for ProcessState
impl Clone for ProcessState
Source§fn clone(&self) -> ProcessState
fn clone(&self) -> ProcessState
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 ProcessState
Source§impl Debug for ProcessState
impl Debug for ProcessState
Source§impl Display for ProcessState
impl Display for ProcessState
impl Eq for ProcessState
Source§impl From<CUprocessState_enum> for ProcessState
impl From<CUprocessState_enum> for ProcessState
Source§fn from(value: CUprocessState) -> Self
fn from(value: CUprocessState) -> Self
Converts to this type from the input type.
Source§impl From<ProcessState> for u32
impl From<ProcessState> for u32
Source§fn from(enum_value: ProcessState) -> Self
fn from(enum_value: ProcessState) -> Self
Converts to this type from the input type.
Source§impl From<ProcessState> for CUprocessState
impl From<ProcessState> for CUprocessState
Source§fn from(value: ProcessState) -> Self
fn from(value: ProcessState) -> Self
Converts to this type from the input type.
Source§impl Hash for ProcessState
impl Hash for ProcessState
Source§impl PartialEq for ProcessState
impl PartialEq for ProcessState
Source§fn eq(&self, other: &ProcessState) -> bool
fn eq(&self, other: &ProcessState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProcessState
Source§impl TryFrom<u32> for ProcessState
impl TryFrom<u32> for ProcessState
Source§type Error = TryFromPrimitiveError<ProcessState>
type Error = TryFromPrimitiveError<ProcessState>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ProcessState
impl TryFromPrimitive for ProcessState
const NAME: &'static str = "ProcessState"
type Primitive = u32
type Error = TryFromPrimitiveError<ProcessState>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ProcessState
impl RefUnwindSafe for ProcessState
impl Send for ProcessState
impl Sync for ProcessState
impl Unpin for ProcessState
impl UnsafeUnpin for ProcessState
impl UnwindSafe for ProcessState
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