Skip to main content

BoxFuture

Type Alias BoxFuture 

Source
pub type BoxFuture = Pin<Box<dyn Future<Output = JsonObject> + Send>>;
Expand description

The future a ToolHandler returns.

Its own alias because spelling Pin<Box<dyn Future<...> + Send>> at every call site is how one of them ends up without the Send.

Aliased Typeยง

#[repr(transparent)]
pub struct BoxFuture { /* private fields */ }