pub struct ParameterContext {Show 14 fields
pub sqlite_busy_timeout_ms: u32,
pub sqlite_compaction_busy_timeout_ms: u32,
pub sqlite_lock_retry_max: u32,
pub sqlite_lock_retry_backoff_ms: u32,
pub codec_b64_chunk_bytes: usize,
pub text_encoding: String,
pub network_gateway_timeout_ms: u32,
pub term_reduction_fuel: u32,
pub runtime_adapter_timeout_s: u32,
pub petri_binding_timeout_s: u32,
pub petri_binding_attempts: u32,
pub cel_test_suite_timeout_s: u32,
pub petri_function_pool_db: String,
pub membrane_continuation_park_ttl_ms: u32,
}Expand description
Contract-owned parameters, resolved once at a process entry and passed inward.
Fields§
§sqlite_busy_timeout_ms: u32Wait duration for a SQLite write lock on an ordinary connection.
sqlite_compaction_busy_timeout_ms: u32Wait duration for a SQLite write lock during compaction.
sqlite_lock_retry_max: u32Maximum additional SQLite lock attempts after the initial attempt.
sqlite_lock_retry_backoff_ms: u32Base interval for bounded linear SQLite lock retry backoff.
codec_b64_chunk_bytes: usizeByte chunk size for streaming base64 framing without internal padding.
text_encoding: StringCanonical text encoding for transport and persisted textual content.
network_gateway_timeout_ms: u32Request deadline for retrieving content through the handle gateway.
term_reduction_fuel: u32Reduction steps the layer 0 term core may take before it returns OutOfFuel.
runtime_adapter_timeout_s: u32Subprocess execution deadline for polyglot runtime adapters.
petri_binding_timeout_s: u32Subprocess execution deadline for Petri net transition bindings.
petri_binding_attempts: u32Maximum attempts for executing a Petri net transition binding including content-missing recovery.
cel_test_suite_timeout_s: u32Subprocess execution deadline for CEL run_test_suite operations.
petri_function_pool_db: StringWorkspace-relative SQLite path for the Layer 0 function memory MCard pool.
membrane_continuation_park_ttl_ms: u32Default continuation park time-to-live offset added to the membrane clock when expiresAt is omitted.
Implementations§
Source§impl ParameterContext
impl ParameterContext
Sourcepub fn from_mapping(
env: &BTreeMap<String, String>,
cli: &BTreeMap<String, String>,
) -> Result<Self, ParameterBoundaryError>
pub fn from_mapping( env: &BTreeMap<String, String>, cli: &BTreeMap<String, String>, ) -> Result<Self, ParameterBoundaryError>
Resolve CLI over environment over contract default; any bottom is a ParameterBoundaryError.
Sourcepub fn from_layers(
env: &BTreeMap<String, String>,
cli: &BTreeMap<String, String>,
card: &BTreeMap<String, String>,
) -> Result<Self, ParameterBoundaryError>
pub fn from_layers( env: &BTreeMap<String, String>, cli: &BTreeMap<String, String>, card: &BTreeMap<String, String>, ) -> Result<Self, ParameterBoundaryError>
Resolve CLI over environment over verified card override (contract keys) over contract default.
Sourcepub fn with_overrides(
&self,
cli: &BTreeMap<String, String>,
) -> Result<Self, ParameterBoundaryError>
pub fn with_overrides( &self, cli: &BTreeMap<String, String>, ) -> Result<Self, ParameterBoundaryError>
A copy with cli (contract keys to boundary strings) applied and narrowed.
Sourcepub fn as_mapping(&self) -> BTreeMap<&'static str, ParameterValue>
pub fn as_mapping(&self) -> BTreeMap<&'static str, ParameterValue>
Contract key to resolved value.
Trait Implementations§
Source§impl Clone for ParameterContext
impl Clone for ParameterContext
Source§impl Debug for ParameterContext
impl Debug for ParameterContext
Source§impl Default for ParameterContext
impl Default for ParameterContext
impl Eq for ParameterContext
Source§impl PartialEq for ParameterContext
impl PartialEq for ParameterContext
impl StructuralPartialEq for ParameterContext
Auto Trait Implementations§
impl Forget for ParameterContext
impl Freeze for ParameterContext
impl Move for ParameterContext
impl RefUnwindSafe for ParameterContext
impl Send for ParameterContext
impl Sync for ParameterContext
impl Unpin for ParameterContext
impl UnsafeUnpin for ParameterContext
impl UnwindSafe for ParameterContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.