Enum xcb::ProtocolError
source · [−]pub enum ProtocolError {
Show 13 variants
X(Error, Option<&'static str>),
Damage(Error, Option<&'static str>),
Glx(Error, Option<&'static str>),
RandR(Error, Option<&'static str>),
Render(Error, Option<&'static str>),
Shm(Error, Option<&'static str>),
Sync(Error, Option<&'static str>),
Xf86VidMode(Error, Option<&'static str>),
XFixes(Error, Option<&'static str>),
Input(Error, Option<&'static str>),
Xkb(Error, Option<&'static str>),
XPrint(Error, Option<&'static str>),
Xv(Error, Option<&'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(Error, Option<&'static str>)
The error is from the core X protocol.
Damage(Error, Option<&'static str>)
The error is issued from the DAMAGE
extension.
Glx(Error, Option<&'static str>)
The error is issued from the GLX
extension.
RandR(Error, Option<&'static str>)
The error is issued from the RANDR
extension.
Render(Error, Option<&'static str>)
The error is issued from the RENDER
extension.
Shm(Error, Option<&'static str>)
The error is issued from the MIT-SHM
extension.
Sync(Error, Option<&'static str>)
The error is issued from the SYNC
extension.
Xf86VidMode(Error, Option<&'static str>)
The error is issued from the XFree86-VidModeExtension
extension.
XFixes(Error, Option<&'static str>)
The error is issued from the XFIXES
extension.
Input(Error, Option<&'static str>)
The error is issued from the XInputExtension
extension.
Xkb(Error, Option<&'static str>)
The error is issued from the XKEYBOARD
extension.
XPrint(Error, Option<&'static str>)
The error is issued from the XpExtension
extension.
Xv(Error, Option<&'static str>)
The error is issued from the XVideo
extension.
Trait Implementations
sourceimpl Debug for ProtocolError
impl Debug for ProtocolError
sourceimpl Display for ProtocolError
impl Display for ProtocolError
sourceimpl Error for ProtocolError
impl Error for ProtocolError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ProtocolError> for Error
impl From<ProtocolError> for Error
sourcefn from(err: ProtocolError) -> Error
fn from(err: ProtocolError) -> Error
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnwindSafe for ProtocolError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more