Trait wasmtime_wasi::bindings::cli::terminal_stdin::Host
source · pub trait Host: Send {
// Required method
fn get_terminal_stdin(&mut self) -> Result<Option<Resource<TerminalInput>>>;
}
Required Methods§
sourcefn get_terminal_stdin(&mut self) -> Result<Option<Resource<TerminalInput>>>
fn get_terminal_stdin(&mut self) -> Result<Option<Resource<TerminalInput>>>
If stdin is connected to a terminal, return a terminal-input
handle
allowing further interaction with it.
Implementations on Foreign Types§
source§impl<_T: Host + ?Sized + Send> Host for &mut _T
impl<_T: Host + ?Sized + Send> Host for &mut _T
source§fn get_terminal_stdin(&mut self) -> Result<Option<Resource<TerminalInput>>>
fn get_terminal_stdin(&mut self) -> Result<Option<Resource<TerminalInput>>>
If stdin is connected to a terminal, return a terminal-input
handle
allowing further interaction with it.