Skip to main content

ServiceFn

Type Alias ServiceFn 

Source
pub type ServiceFn<Req, Res, E> = Arc<dyn Fn(Req) -> BoxFuture<'static, Result<Res, E>> + Send + Sync>;
Expand description

Function that calls a backup service asynchronously.

Aliased Typeยง

pub struct ServiceFn<Req, Res, E> { /* private fields */ }