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
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