Skip to main content

RuntimeHostService

Trait RuntimeHostService 

Source
pub trait RuntimeHostService {
    // Required methods
    fn console(&self, stream: ConsoleStream, text: String);
    fn interact(
        &self,
        request: HostInteraction,
    ) -> Pin<Box<dyn Future<Output = Result<InteractionResponse, RuntimeError>> + 'static>>;
    fn warning(&self, warning: RuntimeWarning);
}

Required Methods§

Source

fn console(&self, stream: ConsoleStream, text: String)

Source

fn interact( &self, request: HostInteraction, ) -> Pin<Box<dyn Future<Output = Result<InteractionResponse, RuntimeError>> + 'static>>

Source

fn warning(&self, warning: RuntimeWarning)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§