pub struct StdioClientConfig {
pub bin_path: Option<String>,
pub timeout_secs: u64,
}
Expand description
Configuration for the stdio client.
Fields§
§bin_path: Option<String>
Optional binary path for spawning child processes. Defaults to PATH.
timeout_secs: u64
Timeout for client requests in seconds.
Trait Implementations§
Source§impl Clone for StdioClientConfig
impl Clone for StdioClientConfig
Source§fn clone(&self) -> StdioClientConfig
fn clone(&self) -> StdioClientConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ConfigExampleSnippet for StdioClientConfig
impl ConfigExampleSnippet for StdioClientConfig
Source§fn config_example_snippet() -> String
fn config_example_snippet() -> String
Returns the configuration example snippet to be used
in new configuration files.
Source§impl Default for StdioClientConfig
impl Default for StdioClientConfig
Source§fn default() -> StdioClientConfig
fn default() -> StdioClientConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StdioClientConfigwhere
StdioClientConfig: Default,
impl<'de> Deserialize<'de> for StdioClientConfigwhere
StdioClientConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StdioClientConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StdioClientConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StdioClientConfig
impl Serialize for StdioClientConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StdioClientConfig
impl RefUnwindSafe for StdioClientConfig
impl Send for StdioClientConfig
impl Sync for StdioClientConfig
impl Unpin for StdioClientConfig
impl UnwindSafe for StdioClientConfig
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