pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;Expand description
A future boxed for storage behind a trait object, as
SurrealEngine’s methods require.
Send but deliberately not Sync: an engine may await a future from a
client library that is not itself Sync (tonic’s are not), and requiring
Sync here would rule those engines out entirely. Nothing polls one of
these from two threads at once, so Sync buys nothing.
Aliased Type§
#[repr(transparent)]pub struct BoxFuture<'a, T> { /* private fields */ }