pub struct LockOptions { /* private fields */ }Expand description
Options for CheckpointProcess::lock.
Implementations§
Source§impl LockOptions
impl LockOptions
Sourcepub const fn with_timeout(self, timeout: Duration) -> Self
pub const fn with_timeout(self, timeout: Duration) -> Self
Sets the maximum time CUDA should spend attempting to lock the process.
A missing timeout passes 0 to CUDA, which means no timeout.
Trait Implementations§
Source§impl Clone for LockOptions
impl Clone for LockOptions
Source§fn clone(&self) -> LockOptions
fn clone(&self) -> LockOptions
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 LockOptions
Source§impl Debug for LockOptions
impl Debug for LockOptions
Source§impl Default for LockOptions
impl Default for LockOptions
Source§fn default() -> LockOptions
fn default() -> LockOptions
Returns the “default value” for a type. Read more
impl Eq for LockOptions
Source§impl Hash for LockOptions
impl Hash for LockOptions
Source§impl PartialEq for LockOptions
impl PartialEq for LockOptions
Source§fn eq(&self, other: &LockOptions) -> bool
fn eq(&self, other: &LockOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LockOptions
Auto Trait Implementations§
impl Freeze for LockOptions
impl RefUnwindSafe for LockOptions
impl Send for LockOptions
impl Sync for LockOptions
impl Unpin for LockOptions
impl UnsafeUnpin for LockOptions
impl UnwindSafe for LockOptions
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