Trait wayland_commons::Interface
[−]
[src]
pub trait Interface: 'static { type Request: MessageGroup + 'static; type Event: MessageGroup + 'static; const NAME: &'static str; fn c_interface() -> *const wl_interface; }
The description of a wayland interface
Implementations of this trait are supposed to be
generated using the wayland-scanner
crate.
Associated Types
type Request: MessageGroup + 'static
Set of requests associated to this interface
Requests are messages from the client to the server
type Event: MessageGroup + 'static
Set of events associated to this interface
Events are messages from the server to the client
Associated Constants
Required Methods
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
Implementors
impl Interface for AnonymousObject type Request = NoMessage; type Event = NoMessage;