pub trait MiddlewareFunc<T>:
Fn(T, NextFn<T>) -> ReusableBoxFuture<Result<T, ThrusterError<T>>>
+ Send
+ Sync { }Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
pub trait MiddlewareFunc<T>:
Fn(T, NextFn<T>) -> ReusableBoxFuture<Result<T, ThrusterError<T>>>
+ Send
+ Sync { }This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".