pub struct EvaluationContext { /* private fields */ }Expand description
Thread-Isolated Evaluation Context.
Encapsulates execution variables, working directories, and mock flags without
mutating process-global state (std::env::set_var), adhering to Cordis Fiber
context scoping and Kenotic core stateless principles.
Implementations§
Source§impl EvaluationContext
impl EvaluationContext
pub fn new() -> Self
pub fn with_root(self, root: impl Into<PathBuf>) -> Self
pub fn with_nested_exec(self, nested: bool) -> Self
pub fn with_zero_fs(self, zero_fs: bool) -> Self
pub fn root(&self) -> Option<&Path>
pub fn is_nested(&self) -> bool
pub fn is_zero_fs(&self) -> bool
pub fn set_var(&mut self, key: impl Into<String>, value: impl Into<String>)
pub fn get_var(&self, key: &str) -> Option<String>
pub fn remove_var(&mut self, key: &str)
Trait Implementations§
Source§impl Clone for EvaluationContext
impl Clone for EvaluationContext
Source§impl Debug for EvaluationContext
impl Debug for EvaluationContext
Auto Trait Implementations§
impl Freeze for EvaluationContext
impl RefUnwindSafe for EvaluationContext
impl Send for EvaluationContext
impl Sync for EvaluationContext
impl Unpin for EvaluationContext
impl UnsafeUnpin for EvaluationContext
impl UnwindSafe for EvaluationContext
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