pub struct LeanWorkerElabOptions { /* private fields */ }Expand description
Bounded elaboration options for worker-session requests.
This mirrors the stable knobs from lean-rs-host::LeanElabOptions without
exposing the in-child host object itself across the process boundary.
Implementations§
Source§impl LeanWorkerElabOptions
impl LeanWorkerElabOptions
Sourcepub fn namespace_context(self, namespace: &str) -> Self
pub fn namespace_context(self, namespace: &str) -> Self
Replace the namespace context.
Sourcepub fn file_label(self, label: &str) -> Self
pub fn file_label(self, label: &str) -> Self
Replace the diagnostic file label.
Sourcepub fn heartbeat_limit(self, heartbeats: u64) -> Self
pub fn heartbeat_limit(self, heartbeats: u64) -> Self
Replace the heartbeat limit. The child applies the host ceiling.
Sourcepub fn diagnostic_byte_limit(self, bytes: usize) -> Self
pub fn diagnostic_byte_limit(self, bytes: usize) -> Self
Replace the diagnostic byte limit. The child applies the host ceiling.
Trait Implementations§
Source§impl Clone for LeanWorkerElabOptions
impl Clone for LeanWorkerElabOptions
Source§fn clone(&self) -> LeanWorkerElabOptions
fn clone(&self) -> LeanWorkerElabOptions
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 LeanWorkerElabOptions
impl Debug for LeanWorkerElabOptions
Source§impl Default for LeanWorkerElabOptions
impl Default for LeanWorkerElabOptions
Source§impl PartialEq for LeanWorkerElabOptions
impl PartialEq for LeanWorkerElabOptions
Source§fn eq(&self, other: &LeanWorkerElabOptions) -> bool
fn eq(&self, other: &LeanWorkerElabOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeanWorkerElabOptions
impl StructuralPartialEq for LeanWorkerElabOptions
Auto Trait Implementations§
impl Freeze for LeanWorkerElabOptions
impl RefUnwindSafe for LeanWorkerElabOptions
impl Send for LeanWorkerElabOptions
impl Sync for LeanWorkerElabOptions
impl Unpin for LeanWorkerElabOptions
impl UnsafeUnpin for LeanWorkerElabOptions
impl UnwindSafe for LeanWorkerElabOptions
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