pub trait Interface {
type Incoming: FromArgs;
type Outgoing: IntoMessage;
const NAME: &'static str;
const VERSION: u32;
const REQUESTS: MessageGroupSpec;
const EVENTS: MessageGroupSpec;
}
Required Associated Constants§
Sourceconst NAME: &'static str
const NAME: &'static str
The name of this interface. This will correspond to the ‘name’ attribute on the ‘interface’ element in the wayland protocol XML.
Sourceconst VERSION: u32
const VERSION: u32
The version of this interface. This will correspond to the ‘version’ attribute on the ‘interface’ element in the wayland protocol XML.
Sourceconst REQUESTS: MessageGroupSpec
const REQUESTS: MessageGroupSpec
A description of the structure of request messages.
Sourceconst EVENTS: MessageGroupSpec
const EVENTS: MessageGroupSpec
A description of the structure of event messages.
Required Associated Types§
Sourcetype Outgoing: IntoMessage
type Outgoing: IntoMessage
The rust type that can be decoded into outgoing messages.
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.