pub enum CaptureStatus {
None,
Active,
Invalidated,
}Expand description
The capture state of a CUDA stream. Matches cudaStreamCaptureStatus.
Variants§
None
The stream is not currently capturing any graph.
Active
The stream is actively capturing a graph.
Invalidated
Capture was invalidated (e.g., by a forbidden API call or a
cross-stream dependency). The caller must call end_capture
to discard the broken graph before doing anything else on the
stream.
Implementations§
Source§impl CaptureStatus
impl CaptureStatus
Sourcepub fn is_capturing(&self) -> bool
pub fn is_capturing(&self) -> bool
Returns true if this stream is actively capturing a graph.
Sourcepub fn is_invalidated(&self) -> bool
pub fn is_invalidated(&self) -> bool
Returns true if capture was invalidated and must be ended.
Trait Implementations§
Source§impl Clone for CaptureStatus
impl Clone for CaptureStatus
Source§fn clone(&self) -> CaptureStatus
fn clone(&self) -> CaptureStatus
Returns a duplicate 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 CaptureStatus
impl Debug for CaptureStatus
Source§impl Hash for CaptureStatus
impl Hash for CaptureStatus
Source§impl PartialEq for CaptureStatus
impl PartialEq for CaptureStatus
impl Copy for CaptureStatus
impl Eq for CaptureStatus
impl StructuralPartialEq for CaptureStatus
Auto Trait Implementations§
impl Freeze for CaptureStatus
impl RefUnwindSafe for CaptureStatus
impl Send for CaptureStatus
impl Sync for CaptureStatus
impl Unpin for CaptureStatus
impl UnsafeUnpin for CaptureStatus
impl UnwindSafe for CaptureStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more