pub struct LeanWorkerElabOptions {
pub namespace_context: String,
pub file_label: String,
pub heartbeat_limit: u64,
pub diagnostic_byte_limit: usize,
}Expand description
Bounded elaboration options for worker-session requests.
Mirrors the stable knobs from lean_rs_host::LeanElabOptions without
exposing the in-child host object across the process boundary. The child
applies the host ceilings for heartbeat_limit and diagnostic_byte_limit;
the values here are caller intent, not post-clamp guarantees.
Fields§
§namespace_context: String§file_label: String§heartbeat_limit: u64§diagnostic_byte_limit: usizeImplementations§
Source§impl LeanWorkerElabOptions
impl LeanWorkerElabOptions
Sourcepub fn new() -> LeanWorkerElabOptions
pub fn new() -> LeanWorkerElabOptions
Create worker elaboration options with host defaults.
Sourcepub fn namespace_context(self, namespace: &str) -> LeanWorkerElabOptions
pub fn namespace_context(self, namespace: &str) -> LeanWorkerElabOptions
Replace the namespace context.
Sourcepub fn file_label(self, label: &str) -> LeanWorkerElabOptions
pub fn file_label(self, label: &str) -> LeanWorkerElabOptions
Replace the diagnostic file label.
Sourcepub fn heartbeat_limit(self, heartbeats: u64) -> LeanWorkerElabOptions
pub fn heartbeat_limit(self, heartbeats: u64) -> LeanWorkerElabOptions
Replace the heartbeat limit. The child applies the host ceiling.
Sourcepub fn diagnostic_byte_limit(self, bytes: usize) -> LeanWorkerElabOptions
pub fn diagnostic_byte_limit(self, bytes: usize) -> LeanWorkerElabOptions
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§fn default() -> LeanWorkerElabOptions
fn default() -> LeanWorkerElabOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LeanWorkerElabOptions
impl<'de> Deserialize<'de> for LeanWorkerElabOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerElabOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerElabOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 ==.Source§impl Serialize for LeanWorkerElabOptions
impl Serialize for LeanWorkerElabOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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