pub struct TraceConfig {
pub lake_root: Utf8PathBuf,
pub recursive: bool,
pub timeout: Duration,
pub keep_raw_output: bool,
pub include_warnings: bool,
pub include_passes: bool,
pub exclude: Vec<String>,
}Expand description
User-configurable tracing settings.
Fields§
§lake_root: Utf8PathBufRoot of the Lean/Lake workspace.
recursive: boolWhether directories should be searched recursively.
timeout: DurationProcess timeout per Lean file.
keep_raw_output: boolKeep raw stdout/stderr in trace records.
include_warnings: boolInclude warnings in parsed diagnostics.
include_passes: boolInclude passing files in JSONL output.
exclude: Vec<String>Substrings; a discovered file is skipped if its path contains any of them.
Implementations§
Source§impl TraceConfig
impl TraceConfig
Sourcepub fn new(lake_root: Utf8PathBuf) -> Self
pub fn new(lake_root: Utf8PathBuf) -> Self
Construct a default trace config rooted at the current working directory.
Sourcepub const fn keep_raw_output(self, keep_raw_output: bool) -> Self
pub const fn keep_raw_output(self, keep_raw_output: bool) -> Self
Set raw-output retention.
Trait Implementations§
Source§impl Clone for TraceConfig
impl Clone for TraceConfig
Source§fn clone(&self) -> TraceConfig
fn clone(&self) -> TraceConfig
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 TraceConfig
impl Debug for TraceConfig
Source§impl<'de> Deserialize<'de> for TraceConfig
impl<'de> Deserialize<'de> for TraceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TraceConfig
impl RefUnwindSafe for TraceConfig
impl Send for TraceConfig
impl Sync for TraceConfig
impl Unpin for TraceConfig
impl UnsafeUnpin for TraceConfig
impl UnwindSafe for TraceConfig
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