pub enum RunCreationMode {
New {
task: String,
},
Resume {
run_id: RunId,
run_dir_name: String,
},
Auto {
task: String,
},
}Expand description
Options for creating a run (new or resume).
Variants§
New
Start a fresh run.
Resume
Resume from an existing checkpoint.
Auto
Auto-detect: resume if resumable run exists, else new.
Implementations§
Source§impl RunCreationMode
impl RunCreationMode
Sourcepub fn resolve(
self,
journal_dir: &Path,
) -> Result<(RunId, Option<RunCheckpoint>), JournalError>
pub fn resolve( self, journal_dir: &Path, ) -> Result<(RunId, Option<RunCheckpoint>), JournalError>
Resolve the creation mode to concrete parameters. For Auto mode, checks journal directory for resumable runs.
Trait Implementations§
Source§impl Clone for RunCreationMode
impl Clone for RunCreationMode
Source§fn clone(&self) -> RunCreationMode
fn clone(&self) -> RunCreationMode
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 moreAuto Trait Implementations§
impl Freeze for RunCreationMode
impl RefUnwindSafe for RunCreationMode
impl Send for RunCreationMode
impl Sync for RunCreationMode
impl Unpin for RunCreationMode
impl UnsafeUnpin for RunCreationMode
impl UnwindSafe for RunCreationMode
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