pub trait CreateEventHandler<T> {
type EventHandler: EventHandler;
// Required method
fn create_event_handler(handler: T) -> Self::EventHandler;
}Expand description
A type that can create an event handler.
This type is usually implemented by OwnedProxy::Api to turn an object implementing
safe event callbacks into an event handler that can handle raw libwayland events.
This type is usually implemented by bindings that are automatically generated with the
wl-client-builder crate.
Required Associated Types§
Required Methods§
Sourcefn create_event_handler(handler: T) -> Self::EventHandler
fn create_event_handler(handler: T) -> Self::EventHandler
Creates a new event handler.
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.