Trait vault_client::FutureLoggingExt[][src]

pub trait FutureLoggingExt<M: Debug + Send + Sync>: Sized + Future {
    fn log<F>(
        self,
        message_fn: F
    ) -> Box<Future<Item = Self::Item, Error = Self::Error> + Send>
    where
        F: Fn(&M) + Send + Sync + 'static
; }

A trait that allows us to log a Future using an inline function.

Required Methods

Logs the current state of Self. In a 'good' state, it will call the logging closure provided. In a 'bad' state, it will just log the appropriate error at 'error' level.

Implementors