Skip to main content

RethAuthHttpMiddleware

Trait RethAuthHttpMiddleware 

pub trait RethAuthHttpMiddleware<RM>:
    Layer<TowerServiceNoHttp<Stack<RM, Identity>>>
    + Clone
    + Send
    + 'static
where Self::Service: Service<Request<Body>, Response = Response<Body>, Error = Box<dyn Error + Send + Sync>> + Send + Clone, <Self::Service as Service<Request<Body>>>::Future: Send,
{ }
Expand description

Helper alias trait for auth-server HTTP transport middleware layers.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<T, RM> RethAuthHttpMiddleware<RM> for T
where T: Layer<TowerServiceNoHttp<Stack<RM, Identity>>> + Clone + Send + 'static, <T as Layer<TowerServiceNoHttp<Stack<RM, Identity>>>>::Service: Service<Request<Body>, Response = Response<Body>, Error = Box<dyn Error + Send + Sync>> + Send + Clone, <<T as Layer<TowerServiceNoHttp<Stack<RM, Identity>>>>::Service as Service<Request<Body>>>::Future: Send,