Trait blockz::singleton::SingletonFn [−][src]
This is supported on crate feature
singleton
only.Trait that defines the behaviour of a function that uses an immutable singleton.
Associated Types
type SingletonResult: Future<Output = R> + Send
[src]
The result of a singleton function (a Future).
Required methods
fn call_once(self, inner: &'i I) -> Self::SingletonResult
[src]
Implementors
impl<'i, I, R, F, FR> SingletonFn<'i, I, R> for F where
I: 'i,
F: FnOnce(&'i I) -> FR,
FR: Future<Output = R> + Send + 'i,
R: Send,
[src]
I: 'i,
F: FnOnce(&'i I) -> FR,
FR: Future<Output = R> + Send + 'i,
R: Send,
type SingletonResult = FR
The result of a singleton function (a Future).