pub trait DispatchBridge: Send + Sync {
// Required method
fn dispatch<'a>(
&'a self,
subject: &'a str,
payload: &'a Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'a>>;
}Expand description
Bridge that maps a GraphQL mutation dispatch to a
themql-core MessageHandler call. Dyn-compatible.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".