pub trait Dispatch2<I: Proxy, State> {
// Required method
fn event(
&self,
_: &mut State,
_: &I,
_: <I as Proxy>::Event,
_: &Connection,
_: &QueueHandle<State>,
);
// Provided method
fn event_created_child(
opcode: u16,
_qh: &QueueHandle<State>,
) -> Arc<dyn ObjectData> { ... }
}Required Methods§
fn event( &self, _: &mut State, _: &I, _: <I as Proxy>::Event, _: &Connection, _: &QueueHandle<State>, )
Provided Methods§
fn event_created_child( opcode: u16, _qh: &QueueHandle<State>, ) -> Arc<dyn ObjectData>
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.