Trait blockz::singleton::SingletonFnWithArg[][src]

pub trait SingletonFnWithArg<'i, I, A, R> where
    A: Send,
    R: Send
{ type SingletonResult: Future<Output = R> + Send; fn call_once(self, inner: &'i I, arg: A) -> Self::SingletonResult; }
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).

Loading content...

Required methods

fn call_once(self, inner: &'i I, arg: A) -> Self::SingletonResult[src]

Loading content...

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]

type SingletonResult = FR

The result of a singleton function (a Future).

Loading content...