pub trait CallbackHandler: Send + Sync {
// Required method
fn call_from_plugin(
&self,
plugin_id: &str,
instance: &Arc<CallbackInstance>,
method: &str,
request: Bytes,
) -> Result<Bytes, CallbackError>;
}Expand description
Receives host.* calls from plugins. Called on the plugin’s thread; implementations
may block.
Required Methods§
fn call_from_plugin( &self, plugin_id: &str, instance: &Arc<CallbackInstance>, method: &str, request: Bytes, ) -> Result<Bytes, CallbackError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".