Skip to main content

Plugin

Trait Plugin 

Source
pub trait Plugin:
    Send
    + Sync
    + Any {
    // Required method
    fn name(&self) -> String;

    // Provided method
    fn group(&self) -> String { ... }
}
Expand description

Base plugin interface implemented by all plugins.

Provides a name and an optional group label.

Required Methods§

Source

fn name(&self) -> String

The name of the plugin. This is used to identify the plugin.

Provided Methods§

Source

fn group(&self) -> String

Returns the group name

Trait Implementations§

Source§

impl Debug for dyn Plugin

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§