Expand description
Singleton Factory method
Required Methods
Implementations on Foreign Types
sourceimpl<Body> Singleton for BaseFacade<Body> where
Body: 'static + Debug,
impl<Body> Singleton for BaseFacade<Body> where
Body: 'static + Debug,
sourcefn global() -> &'static BaseFacade<Body>
fn global() -> &'static BaseFacade<Body>
Facade Singleton Factory method
It is not possible to implement Singleton with generics. So you should implement it in your final code only.
Error: use of generic parameter from outer function
sourceimpl<Body> Singleton for BaseController<Body> where
Body: 'static + Debug,
impl<Body> Singleton for BaseController<Body> where
Body: 'static + Debug,
sourcefn global() -> &'static BaseController<Body>
fn global() -> &'static BaseController<Body>
Controller Singleton Factory method
It is not possible to implement Singleton with generics. So you should implement it in your final code only.
Error: use of generic parameter from outer function