pub struct StdioConfig {
pub encoding: Encoding,
pub params: BTreeMap<String, String>,
}Fields§
§encoding: Encoding§params: BTreeMap<String, String>Implementations§
Source§impl StdioConfig
impl StdioConfig
pub fn reject_any(&self) -> Result<(), StdioError>
pub fn allow_only(&self, keys: Vec<&'static str>) -> Result<(), StdioError>
pub fn get<T: FromStr>(&self, key: &'static str) -> Result<T, StdioError>
pub fn get_opt<T: FromStr>( &self, key: &'static str, ) -> Result<Option<T>, StdioError>
pub fn get_string(&self, key: &'static str) -> Result<String, StdioError>
pub fn read_stdin(&self, system: &mut System) -> ReadStdin
pub fn write_stdout(&self, system: &mut System) -> WriteStdout
pub fn write_stderr(&self, system: &mut System) -> WriteStderr
Trait Implementations§
Source§impl Clone for StdioConfig
impl Clone for StdioConfig
Source§fn clone(&self) -> StdioConfig
fn clone(&self) -> StdioConfig
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 Debug for StdioConfig
impl Debug for StdioConfig
Source§impl Default for StdioConfig
impl Default for StdioConfig
Source§fn default() -> StdioConfig
fn default() -> StdioConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StdioConfig
impl RefUnwindSafe for StdioConfig
impl Send for StdioConfig
impl Sync for StdioConfig
impl Unpin 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