pub struct RestoreOptions { /* private fields */ }Expand description
Options for CheckpointProcess::restore, including optional GPU remap entries.
Implementations§
Source§impl RestoreOptions
impl RestoreOptions
Sourcepub fn with_gpu_pairs(gpu_pairs: &[GpuPair]) -> Self
pub fn with_gpu_pairs(gpu_pairs: &[GpuPair]) -> Self
Creates restore options from checkpointed/restored GPU UUID pairs.
Sourcepub fn with_gpu_pair(self, pair: GpuPair) -> Self
pub fn with_gpu_pair(self, pair: GpuPair) -> Self
Adds a single GPU remapping pair.
Sourcepub fn with_device_pair(self, old: Device, new: Device) -> Result<Self>
pub fn with_device_pair(self, old: Device, new: Device) -> Result<Self>
Adds a GPU remapping pair from CUDA devices.
Sourcepub fn push_gpu_pair(&mut self, pair: GpuPair)
pub fn push_gpu_pair(&mut self, pair: GpuPair)
Adds a single GPU remapping pair in place.
Trait Implementations§
Source§impl Clone for RestoreOptions
impl Clone for RestoreOptions
Source§fn clone(&self) -> RestoreOptions
fn clone(&self) -> RestoreOptions
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 moreSource§impl Debug for RestoreOptions
impl Debug for RestoreOptions
Source§impl Default for RestoreOptions
impl Default for RestoreOptions
impl Eq for RestoreOptions
Source§impl From<&[GpuPair]> for RestoreOptions
impl From<&[GpuPair]> for RestoreOptions
Source§impl PartialEq for RestoreOptions
impl PartialEq for RestoreOptions
Source§fn eq(&self, other: &RestoreOptions) -> bool
fn eq(&self, other: &RestoreOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RestoreOptions
Auto Trait Implementations§
impl Freeze for RestoreOptions
impl RefUnwindSafe for RestoreOptions
impl Send for RestoreOptions
impl Sync for RestoreOptions
impl Unpin for RestoreOptions
impl UnsafeUnpin for RestoreOptions
impl UnwindSafe for RestoreOptions
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