[][src]Trait mammoth_setup::MammothInterface

pub trait MammothInterface: Any + Send + Sync + Log {
    fn on_validation(&self, _: &mut dyn Logger) -> Result<(), Error>;

    fn on_load(&self) { ... }
fn on_shutdown(&self) { ... } }

Trait that contains the functions that should be implemented by a module or a handler.

Required methods

fn on_validation(&self, _: &mut dyn Logger) -> Result<(), Error>

Function that is called when the server is validating the configuration.

Loading content...

Provided methods

fn on_load(&self)

Function that is called when the library is loaded.

fn on_shutdown(&self)

Function that is called when the server is shut down.

Loading content...

Implementors

Loading content...