Skip to main content

Console

Trait Console 

Source
pub trait Console: Send + Sync {
    // Required method
    fn read_output<'life0, 'async_trait>(
        &'life0 self,
        max_bytes: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

The guest console’s output.

Required Methods§

Source

fn read_output<'life0, 'async_trait>( &'life0 self, max_bytes: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Takes up to max_bytes of console output not yet read.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§