Trait Host

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

Required Methods§

Source

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

If stdout is connected to a terminal, return a terminal-output 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_stdout( &mut self, ) -> Result<Option<Resource<TerminalOutput>>>

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

Implementors§