pub struct InterpreterState {Show 13 fields
pub fs: Arc<dyn VirtualFs>,
pub env: HashMap<String, Variable>,
pub cwd: String,
pub functions: HashMap<String, FunctionDef>,
pub last_exit_code: i32,
pub commands: HashMap<String, Arc<dyn VirtualCommand>>,
pub shell_opts: ShellOpts,
pub shopt_opts: ShoptOpts,
pub limits: ExecutionLimits,
pub counters: ExecutionCounters,
pub network_policy: NetworkPolicy,
pub positional_params: Vec<String>,
pub shell_name: String,
/* private fields */
}Expand description
The interpreter’s mutable state, persistent across exec() calls.
Fields§
§fs: Arc<dyn VirtualFs>§env: HashMap<String, Variable>§cwd: String§functions: HashMap<String, FunctionDef>§last_exit_code: i32§commands: HashMap<String, Arc<dyn VirtualCommand>>§shell_opts: ShellOpts§shopt_opts: ShoptOpts§limits: ExecutionLimits§counters: ExecutionCounters§network_policy: NetworkPolicy§positional_params: Vec<String>§shell_name: StringAuto Trait Implementations§
impl Freeze for InterpreterState
impl !RefUnwindSafe for InterpreterState
impl Send for InterpreterState
impl Sync for InterpreterState
impl Unpin for InterpreterState
impl UnsafeUnpin for InterpreterState
impl !UnwindSafe for InterpreterState
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