pub struct ReplayOptions {
pub lake_root: Utf8PathBuf,
pub timeout: Duration,
pub keep_workdir: bool,
pub allow_multi_file: bool,
pub compute_baseline: bool,
pub reverse_dep: bool,
pub cache_get: bool,
}Expand description
Runtime options for a replay run.
Fields§
§lake_root: Utf8PathBufLake workspace root that gets copied per attempt.
timeout: DurationPer-compile timeout.
keep_workdir: boolKeep each workspace copy on disk instead of deleting it.
allow_multi_file: boolAllow an attempt to edit more than one file.
compute_baseline: boolCompile an unpatched baseline so new errors and regressions are scored.
reverse_dep: boolRun the reverse-dependency accept guard (lake build of the module).
cache_get: boolRun lake exe cache get in the workspace when the project pulls mathlib,
so dependency oleans are restored before the edited file is recompiled.
Implementations§
Source§impl ReplayOptions
impl ReplayOptions
Sourcepub fn new(lake_root: Utf8PathBuf) -> Self
pub fn new(lake_root: Utf8PathBuf) -> Self
Default options rooted at lake_root: one-minute timeout, disposable
workspaces, single-file edits, baseline on, accept guards on.
Trait Implementations§
Source§impl Clone for ReplayOptions
impl Clone for ReplayOptions
Source§fn clone(&self) -> ReplayOptions
fn clone(&self) -> ReplayOptions
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 ReplayOptions
impl Debug for ReplayOptions
impl Eq for ReplayOptions
Source§impl PartialEq for ReplayOptions
impl PartialEq for ReplayOptions
Source§fn eq(&self, other: &ReplayOptions) -> bool
fn eq(&self, other: &ReplayOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReplayOptions
Auto Trait Implementations§
impl Freeze for ReplayOptions
impl RefUnwindSafe for ReplayOptions
impl Send for ReplayOptions
impl Sync for ReplayOptions
impl Unpin for ReplayOptions
impl UnsafeUnpin for ReplayOptions
impl UnwindSafe for ReplayOptions
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