Enum wayland_client::FatalError [] [src]

pub enum FatalError {
    Io(Error),
    Protocol {
        interface: String,
        proxy_id: u32,
        error_code: u32,
    },
}

Enum representing possible errors fatal to a wayland session

These errors are fatal, so there is no way to recover the session, you must create a new one (or report failure to your user). But recovering this error can provide usefull debug information and/or help provide a sensible error message to the user.

Variants

Session aborted after an I/O error

Session aborted after a protocol error

Fields of Protocol

name of the interface of the proxy that generated this error

internal id of the proxy that generated this error

code of the error, as defined by the Error enum of the interface of the proxy. It can directly be fed to the from_raw static method of this enum.

Trait Implementations

impl Debug for FatalError
[src]

[src]

Formats the value using the given formatter.