Type Definition dbcrossbarlib::tokio_glue::BoxFuture[][src]

pub type BoxFuture<T, E = Error> = BoxFuture<'static, Result<T, E>>;
Expand description

Standard future type for this library. Like Result, but used by async. We mark it as Send to ensure it can be sent between threads safely (even when blocked on .await!), and we Pin<Box<...>> it using .boxed() to make it an abstract, heap-based type, for convenience. All we know is that it will return a Result<T>.