pub trait Call<Req, State, Res>: Send + Sync {
// Required methods
fn call(
&self,
bundle: Bundle<Req, State, Res>,
) -> Pin<Box<dyn Future<Output = Bundle<Req, State, Res>> + Send>>;
fn priority(&self) -> u8;
}Expand description
A type-erased handler callable with a whole bundle.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".