LazyLoadable

Trait LazyLoadable 

Source
pub trait LazyLoadable {
    // Required methods
    fn reload(&mut self) -> Result<()>;
    fn is_loaded(&self) -> bool;
    fn loading_status(&self) -> &'static str;
}
Expand description

Trait for modules that support lazy loading and reloading of data

Required Methods§

Source

fn reload(&mut self) -> Result<()>

Reload the module’s data from its external sources

Source

fn is_loaded(&self) -> bool

Check if the module’s data is currently loaded

Source

fn loading_status(&self) -> &'static str

Get a description of the module’s current loading status

Implementors§