Module

Trait Module 

Source
pub trait Module: ModuleBase {
    // Required methods
    fn create(internals: ModInternals) -> Result<Self, Error>
       where Self: Sized;
    fn setup(&mut self) -> Result<(), Error>;
    fn teardown(&mut self);
}
Expand description

Part of the Module trait to be implemented by user.

Required Methods§

Source

fn create(internals: ModInternals) -> Result<Self, Error>
where Self: Sized,

Source

fn setup(&mut self) -> Result<(), Error>

Source

fn teardown(&mut self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§