1 2 3 4 5 6 7
//! Shared utility types. use std::future::Future; use std::pin::Pin; /// A boxed, pinned, Send future — used throughout the crate for async callbacks. pub type BoxFuture<T> = Pin<Box<dyn Future<Output = T> + Send + 'static>>;