Skip to main content

HandlerFuture

Type Alias HandlerFuture 

Source
pub type HandlerFuture = Pin<Box<dyn Future<Output = Result<HandlerOutput, JmapError>> + Send>>;
Expand description

The return type for all JmapHandler implementations.

Handlers must return a Send future. The concrete type is a heap-allocated trait object so the trait itself remains object-safe.

Aliased Typeยง

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