pub struct ProcessEnv {
pub agent: AgentModeContext,
pub home: Option<PathBuf>,
}Expand description
Process-edge environment values threaded inward from each binary’s main.
Per REPO_INVARIANTS.md #5 the environment is read once at the binary edge
and passed inward as typed values. This bundle carries those reads so the
shared library code never touches std::env.
Fields§
§agent: AgentModeContextAgent-mode context derived from the agent token environment variables.
home: Option<PathBuf>The process HOME directory, if set.
Trait Implementations§
Source§impl Clone for ProcessEnv
impl Clone for ProcessEnv
Source§fn clone(&self) -> ProcessEnv
fn clone(&self) -> ProcessEnv
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessEnv
impl Debug for ProcessEnv
Source§impl Default for ProcessEnv
impl Default for ProcessEnv
Source§fn default() -> ProcessEnv
fn default() -> ProcessEnv
Returns the “default value” for a type. Read more
impl Eq for ProcessEnv
Source§impl PartialEq for ProcessEnv
impl PartialEq for ProcessEnv
Source§fn eq(&self, other: &ProcessEnv) -> bool
fn eq(&self, other: &ProcessEnv) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProcessEnv
Auto Trait Implementations§
impl Freeze for ProcessEnv
impl RefUnwindSafe for ProcessEnv
impl Send for ProcessEnv
impl Sync for ProcessEnv
impl Unpin for ProcessEnv
impl UnsafeUnpin for ProcessEnv
impl UnwindSafe for ProcessEnv
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