Struct ruspiro_singleton::Singleton [−][src]
pub struct Singleton<T: 'static> { /* fields omitted */ }
Expand description
The Singleton wrapper stores any type
Implementations
Take the stored singleton for whatever operation and prevent usage by other cores Safe access to the singleton mutable instance is guarantied inside the given closure.
Immutable access to a singleton for a specific operation. This access does not enforce any lock nor guarantees safe atomic access to the instance. However, it is usefull in read-only access scenarios like inside interrupt handlers.