Trait blockz::singleton::SingletonFnWithArg [−][src]
This is supported on crate feature
singleton
only.Trait that defines the behaviour of a function that uses an immutable singleton and an argument.
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, arg: A) -> Self::SingletonResult
[src]
Implementors
impl<'i, A, I, R, F, FR> SingletonFnWithArg<'i, I, A, R> for F where
I: 'i,
F: FnOnce(&'i I, A) -> FR,
FR: Future<Output = R> + Send + 'i,
A: Send,
R: Send,
[src]
I: 'i,
F: FnOnce(&'i I, A) -> FR,
FR: Future<Output = R> + Send + 'i,
A: Send,
R: Send,
type SingletonResult = FR
The result of a singleton function (a Future).