Struct x11rb::x11_utils::X11Error[][src]

pub struct X11Error {
    pub error_kind: ErrorKind,
    pub error_code: u8,
    pub sequence: u16,
    pub bad_value: u32,
    pub minor_opcode: u16,
    pub major_opcode: u8,
}

Representation of an X11 error packet that was sent by the server.

Fields

error_kind: ErrorKind

The kind of error that occurred.

error_code: u8

The kind of error that occurred as it appears “on the wire”.

sequence: u16

The sequence number of the request that caused this error.

bad_value: u32

The value in the request that caused the error.

minor_opcode: u16

The minor opcode of the request that caused this error.

major_opcode: u8

The major opcode of the request that caused this error.

Implementations

impl X11Error[src]

pub fn try_parse(
    data: &[u8],
    ext_info_provider: &dyn ExtInfoProvider
) -> Result<Self, ParseError>
[src]

Parse an X11 error.

Trait Implementations

impl Clone for X11Error[src]

impl Copy for X11Error[src]

impl Debug for X11Error[src]

impl Eq for X11Error[src]

impl From<X11Error> for ReplyError[src]

impl From<X11Error> for ReplyOrIdError[src]

impl PartialEq<X11Error> for X11Error[src]

impl StructuralEq for X11Error[src]

impl StructuralPartialEq for X11Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.