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§
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)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".