pub type TaskEndpointHandler = Arc<dyn Fn(TaskContext) -> BoxFuture<'static, TaskEndpointResponse> + Send + Sync + 'static>;Expand description
Handler invoked when a request hits /tasks/{task}/{endpoint}.
The daemon hands the handler a fresh TaskContext (built from the
daemon’s own resources) and awaits the future.
Aliased Type§
pub struct TaskEndpointHandler { /* private fields */ }