Skip to main content

DashboardApiModuleExt

Trait DashboardApiModuleExt 

Source
pub trait DashboardApiModuleExt {
    // Required method
    fn get_module<M: ServerModule + 'static>(&self) -> Option<&M>;
}
Expand description

Extension trait for IDashboardApi providing type-safe module access

Required Methods§

Source

fn get_module<M: ServerModule + 'static>(&self) -> Option<&M>

Get a typed reference to a server module instance by kind

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§