Skip to main content

Host

Trait Host 

Source
pub trait Host {
    // Required method
    fn call(&mut self, method: &str, request: &str) -> Result<String, String>;
}
Expand description

An application’s host methods for one run.

Required Methods§

Source

fn call(&mut self, method: &str, request: &str) -> Result<String, String>

Handle one call: the method’s name and the request text; the reply text, or the error message the plugin gets.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§