Skip to main content

ApprovalFuture

Type Alias ApprovalFuture 

Source
pub type ApprovalFuture<'a> = Pin<Box<dyn Future<Output = ServerRequestReply> + Send + 'a>>;
Expand description

Boxed future returned by ApprovalHandler.

The future is lifetime-bound to the handler and request so custom handlers can borrow their own UI/channel state and inspect the typed request while waiting asynchronously for a decision.

Aliased Typeยง

pub struct ApprovalFuture<'a> { /* private fields */ }