pub enum ProtocolError {
Show 13 variants X(ErrorOption<&'static str>), Damage(ErrorOption<&'static str>), Glx(ErrorOption<&'static str>), RandR(ErrorOption<&'static str>), Render(ErrorOption<&'static str>), Shm(ErrorOption<&'static str>), Sync(ErrorOption<&'static str>), Xf86VidMode(ErrorOption<&'static str>), XFixes(ErrorOption<&'static str>), Input(ErrorOption<&'static str>), Xkb(ErrorOption<&'static str>), XPrint(ErrorOption<&'static str>), Xv(ErrorOption<&'static str>),
}
Expand description

A protocol error issued from the X server

The second member is the name of the request that emitted the error (if any).

Variants

X(ErrorOption<&'static str>)

The error is from the core X protocol.

Damage(ErrorOption<&'static str>)

The error is issued from the DAMAGE extension.

Glx(ErrorOption<&'static str>)

The error is issued from the GLX extension.

RandR(ErrorOption<&'static str>)

The error is issued from the RANDR extension.

Render(ErrorOption<&'static str>)

The error is issued from the RENDER extension.

Shm(ErrorOption<&'static str>)

The error is issued from the MIT-SHM extension.

Sync(ErrorOption<&'static str>)

The error is issued from the SYNC extension.

Xf86VidMode(ErrorOption<&'static str>)

The error is issued from the XFree86-VidModeExtension extension.

XFixes(ErrorOption<&'static str>)

The error is issued from the XFIXES extension.

Input(ErrorOption<&'static str>)

The error is issued from the XInputExtension extension.

Xkb(ErrorOption<&'static str>)

The error is issued from the XKEYBOARD extension.

XPrint(ErrorOption<&'static str>)

The error is issued from the XpExtension extension.

Xv(ErrorOption<&'static str>)

The error is issued from the XVideo extension.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.