pub trait FnLayerMethod: Send + 'static {
// Required method
fn call(
&self,
req: Request<SgBody>,
inner: Inner,
) -> impl Future<Output = Response<SgBody>> + Send;
}
Expand description
see FnLayer
Required Methods§
fn call( &self, req: Request<SgBody>, inner: Inner, ) -> impl Future<Output = Response<SgBody>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.