Trait futures_poll_log::LoggingExt
[−]
[src]
pub trait LoggingExt<T, E> where
T: Debug,
E: Debug,
Self: Future<Item = T, Error = E> + Sized, { fn inspect(self, label: &str) -> LoggedFuture<T, E, Self>; }
LoggingExt introduces the logging capabilities to any Future, as long as all its Item and Error can be printed.
Required Methods
fn inspect(self, label: &str) -> LoggedFuture<T, E, Self>
inspect() sets up the logging. The label
will
be used to identify the Future in the log messages
used.
This method returns Self
instead of a LoggedFuture
when the silence
feature is activated.