pub trait Dispatch<I: Proxy>: Sized {
    type UserData: Send + Sync + 'static;
    fn event(
        &mut self,
        proxy: &I,
        event: I::Event,
        data: &Self::UserData,
        connhandle: &mut ConnectionHandle<'_>,
        qhandle: &QueueHandle<Self>
    ); fn event_created_child(
        opcode: u16,
        _qhandle: &QueueHandle<Self>
    ) -> Arc<dyn ObjectData> { ... } }
Expand description

A trait which provides an implementation for handling events from the server on a proxy with some type of associated user data.

Associated Types

The user data associated with the type of proxy.

Required methods

Called when an event from the server is processed.

The implementation of this function may vary depending on protocol requirements. Typically the client will respond to the server by sending requests to the proxy.

Provided methods

Method used to initialize the user-data of objects created by events

If the interface does not have any such event, you can ignore it. If not, the event_created_child! macro is provided for overriding it.

Implementors