Skip to main content

BoxResourceService

Type Alias BoxResourceService 

Source
pub type BoxResourceService = BoxCloneService<ResourceRequest, ReadResourceResult, Infallible>;
Expand description

A boxed, cloneable resource service with Error = Infallible.

This is the internal service type that resources use. Middleware errors are caught and converted to error results, so the service never fails at the Tower level.

Aliased Typeยง

pub struct BoxResourceService(/* private fields */);