Trait ruex::prelude::Singleton

source ·
pub trait Singleton {
    // Required method
    fn global() -> &'static Self;
}
Expand description

Singleton Factory method

Required Methods§

source

fn global() -> &'static Self

Retrieve instance of Singleton

Implementors§

source§

impl Singleton for BaseModel

source§

impl<Body> Singleton for BaseController<Body>where Body: Debug + 'static,

source§

impl<Body> Singleton for BaseView<Body>where Body: Debug + 'static,

source§

impl<Body> Singleton for BaseFacade<Body>where Body: Debug + 'static,