Skip to main content

Module factory

Module factory 

Source
Expand description

Task factory and service adapter types.

This module owns the public task construction contract. Every call to TaskFactory::build must create a fresh future for one attempt.

Structs§

ServiceFn
Concrete service adapter returned by service_fn.

Enums§

TaskResult
Result produced by a supervised task attempt.

Traits§

Service
Service adapter that can be converted into a TaskFactory.
TaskFactory
Factory that creates a fresh task future for each attempt.

Functions§

service_fn
Creates a service from a function or closure.

Type Aliases§

BoxTaskFuture
Boxed task future returned by task factories.