Skip to main content

Module

Trait Module 

Source
pub trait Module: Send + Sync {
    // Required method
    fn metadata(&self) -> ModuleMetadata;

    // Provided method
    fn configure(&self, ctx: &mut ModuleContext) -> Result<(), CoreError> { ... }
}
Expand description

Trait implemented by all application modules (manually or via #[module]).

Required Methods§

Provided Methods§

Source

fn configure(&self, ctx: &mut ModuleContext) -> Result<(), CoreError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§