Skip to main content

BackgroundWork

Type Alias BackgroundWork 

Source
pub type BackgroundWork = Pin<Box<dyn Future<Output = Result<(), HandlerError>> + Send>>;
Available on crate feature rest only.
Expand description

Background Work handed to the Adapter: runs after the response is sent; an Err is logged. Send, so Adapters can run it on any thread (ADR 0012).

Aliased Typeยง

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