pub trait AsyncPluginHandler: Send + Sync + 'static {
    type Configuration: Serialize + Clone + Send + Sync;
    fn resolve_config(
        &self,
        config: ConfigKeyMap,
        global_config: GlobalConfiguration
    ) -> ResolveConfigurationResult<Self::Configuration>; fn plugin_info(&self) -> PluginInfo; fn license_text(&self) -> String; fn format(
        &self,
        request: FormatRequest<Self::Configuration>,
        host: Arc<dyn Host>
    ) -> BoxFuture<'_, FormatResult>; }
Expand description

Trait for implementing a process plugin. Wasm plugins will eventually be changed to implement this.

Associated Types

Required methods

Resolves configuration based on the provided config map and global configuration.

Gets the plugin’s plugin info.

Gets the plugin’s license text.

Formats the provided file text based on the provided file path and configuration.

Implementors