Trait Host

Source
pub trait Host: Send + Send {
    // Required method
    fn get_terminal_stdin(
        &mut self,
    ) -> impl Future<Output = Result<Option<Resource<TerminalInput>>>> + Send;
}

Required Methods§

Source

fn get_terminal_stdin( &mut self, ) -> impl Future<Output = Result<Option<Resource<TerminalInput>>>> + Send

If stdin is connected to a terminal, return a terminal-input handle allowing further interaction with it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

Source§

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

Implementors§