pub trait ProtocolError: Error + Send + Sync + 'static {
    // Required methods
    fn wayland_error(&self) -> Option<(u32, u32)>;
    fn fatal(&self) -> bool;
}
Expand description

Converting Rust errors to Wayland error events

Required Methods§

source

fn wayland_error(&self) -> Option<(u32, u32)>

Returns an object id and a wayland error code associated with this error, in that order. If not None, an error event will be sent to the client.

source

fn fatal(&self) -> bool

Returns whether this error is fatal. If true, the client should be disconnected.

Implementors§