Skip to main content

Module

Trait Module 

Source
pub trait Module: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn module_type(&self) -> &str;
}
Expand description

Base trait that all modules must implement

Required Methods§

Source

fn name(&self) -> &str

Get the module’s unique name

Source

fn module_type(&self) -> &str

Get the module type (e.g., “processor”, “provider”, “plugin”)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§