pub struct StdioConfig {
pub command: String,
pub args: Vec<String>,
pub env: IndexMap<String, String>,
pub pass_env: Vec<String>,
pub inherit_env: bool,
pub cwd: Option<String>,
pub show_stderr: bool,
}Expand description
Child-process server.
Fields§
§command: String§args: Vec<String>§env: IndexMap<String, String>Explicit environment variables for the child.
pass_env: Vec<String>Names of host variables copied into the child’s environment
(in addition to DEFAULT_PASS_ENV).
inherit_env: boolInherit the full host environment. Off by default so host secrets are not leaked to third-party servers.
cwd: Option<String>§show_stderr: boolForward the server’s stderr to this process’s stderr (default: discarded).
Trait Implementations§
Source§impl Clone for StdioConfig
impl Clone for StdioConfig
Source§impl Debug for StdioConfig
impl Debug for StdioConfig
Source§impl<'de> Deserialize<'de> for StdioConfig
impl<'de> Deserialize<'de> for StdioConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StdioConfig
impl PartialEq for StdioConfig
Source§impl Serialize for StdioConfig
impl Serialize for StdioConfig
impl StructuralPartialEq for StdioConfig
Auto Trait Implementations§
impl Forget for StdioConfig
impl Freeze for StdioConfig
impl Move for StdioConfig
impl RefUnwindSafe for StdioConfig
impl Send for StdioConfig
impl Sync for StdioConfig
impl Unpin for StdioConfig
impl UnsafeUnpin for StdioConfig
impl UnwindSafe for StdioConfig
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