pub struct McpChildEnvironment { /* private fields */ }Expand description
Exact, bounded child environment resolved from an empty map.
Implementations§
Source§impl McpChildEnvironment
impl McpChildEnvironment
Sourcepub fn names(&self) -> impl Iterator<Item = &str>
pub fn names(&self) -> impl Iterator<Item = &str>
Returns sorted exact names without exposing values.
Sourcepub fn apply_to(&self, command: &mut Command)
pub fn apply_to(&self, command: &mut Command)
Clears inherited process state and applies only these reviewed values.
Sourcepub fn into_variables(self) -> impl Iterator<Item = (String, OsString)>
pub fn into_variables(self) -> impl Iterator<Item = (String, OsString)>
Consumes the environment into exact process name/value pairs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpChildEnvironment
impl RefUnwindSafe for McpChildEnvironment
impl Send for McpChildEnvironment
impl Sync for McpChildEnvironment
impl Unpin for McpChildEnvironment
impl UnsafeUnpin for McpChildEnvironment
impl UnwindSafe for McpChildEnvironment
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