Trait blockz::singleton::SingletonFnMut[][src]

pub trait SingletonFnMut<'i, I, R> where
    R: Send
{ type SingletonResult: Future<Output = R> + Send; fn call_once(self, inner: &'i mut I) -> Self::SingletonResult; }
This is supported on crate feature singleton only.

Trait that defines the behaviour of a function that uses a mutable singleton.

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 mut I) -> Self::SingletonResult[src]

Loading content...

Implementors

impl<'i, I, R, F, FR> SingletonFnMut<'i, I, R> for F where
    I: 'i,
    F: FnMut(&'i mut I) -> FR,
    FR: Future<Output = R> + Send + 'i,
    R: Send
[src]

type SingletonResult = FR

The result of a singleton function (a Future).

Loading content...