pub struct ContextOptions {
pub run_trace: bool,
pub lake_root: Utf8PathBuf,
pub timeout: Duration,
pub include_warnings: bool,
}Expand description
Runtime options for gather_context when a live Lean trace is wanted.
Fields§
§run_trace: boolRun lake lean over the file to attach diagnostics and goal state.
lake_root: Utf8PathBufLake workspace root used for the trace and provenance probes.
timeout: DurationProcess timeout for the trace.
include_warnings: boolKeep warning diagnostics in the bundle.
Implementations§
Source§impl ContextOptions
impl ContextOptions
Sourcepub fn new(lake_root: Utf8PathBuf) -> Self
pub fn new(lake_root: Utf8PathBuf) -> Self
Tracing options rooted at lake_root with a sixty-second timeout.
Trait Implementations§
Source§impl Clone for ContextOptions
impl Clone for ContextOptions
Source§fn clone(&self) -> ContextOptions
fn clone(&self) -> ContextOptions
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 ContextOptions
impl Debug for ContextOptions
impl Eq for ContextOptions
Source§impl PartialEq for ContextOptions
impl PartialEq for ContextOptions
Source§fn eq(&self, other: &ContextOptions) -> bool
fn eq(&self, other: &ContextOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContextOptions
Auto Trait Implementations§
impl Freeze for ContextOptions
impl RefUnwindSafe for ContextOptions
impl Send for ContextOptions
impl Sync for ContextOptions
impl Unpin for ContextOptions
impl UnsafeUnpin for ContextOptions
impl UnwindSafe for ContextOptions
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