Trait conch_runtime::env::ExportedVariableEnvironment
[−]
[src]
pub trait ExportedVariableEnvironment: VariableEnvironment { fn exported_var(&self, name: &Self::VarName) -> Option<(&Self::Var, bool)>; fn set_exported_var(
&mut self,
name: Self::VarName,
val: Self::Var,
exported: bool
); }
An interface for setting and getting shell and environment variables and controlling whether or not they can appear as environment variables to subprocesses.
Required Methods
fn exported_var(&self, name: &Self::VarName) -> Option<(&Self::Var, bool)>
Get the value of some variable and whether it is exported.
fn set_exported_var(
&mut self,
name: Self::VarName,
val: Self::Var,
exported: bool
)
&mut self,
name: Self::VarName,
val: Self::Var,
exported: bool
)
Set the value of some variable, and set it's exported status as specified.
Implementors
impl<A, IO, FD, L, V, EX, WD, N, ERR> ExportedVariableEnvironment for Env<A, IO, FD, L, V, EX, WD, N, ERR> where
V: ExportedVariableEnvironment,
N: Hash + Eq,impl<A, IO, FD, L, V, EX, WD, N, ERR> ExportedVariableEnvironment for AtomicEnv<A, IO, FD, L, V, EX, WD, N, ERR> where
V: ExportedVariableEnvironment,
N: Hash + Eq,impl<'a, T: ?Sized + ExportedVariableEnvironment> ExportedVariableEnvironment for &'a mut T
impl<N: Eq + Hash + Clone, V: Clone + Eq> ExportedVariableEnvironment for VarEnv<N, V>
impl<N: Eq + Hash + Clone, V: Clone + Eq> ExportedVariableEnvironment for AtomicVarEnv<N, V>