pub struct Config { /* private fields */ }Expand description
Configuration carried by the worker runtime.
The config is intentionally small: it selects deterministic agent execution and an explicit side-effect posture so durable workflow workers can be inspected without confusing storage evidence with permission to act in live systems.
Implementations§
Source§impl Config
impl Config
Sourcepub fn from_env_defaults() -> Self
pub fn from_env_defaults() -> Self
Reads safe local defaults from the environment without enabling live side effects.
PET_RESORT_AGENT_RUNTIME_MODE=disabled turns agent execution off; every other
value falls back to deterministic fixtures. Side effects remain SideEffectMode::Stubbed.
Sourcepub fn agent_runtime_mode(&self) -> AgentRuntimeMode
pub fn agent_runtime_mode(&self) -> AgentRuntimeMode
Returns the agent runtime mode carried by this worker runtime value.
Sourcepub fn side_effect_mode(&self) -> SideEffectMode
pub fn side_effect_mode(&self) -> SideEffectMode
Returns the side effect mode carried by this worker runtime value.
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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