Struct x11rb_protocol::x11_utils::X11Error
source · [−]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,
pub extension_name: Option<String>,
pub request_name: Option<&'static str>,
}
Expand description
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.
extension_name: Option<String>
Name of the extension that caused this error, if known.
request_name: Option<&'static str>
Name of the request that caused this error, if known.
Implementations
sourceimpl X11Error
impl X11Error
sourcepub fn try_parse(
data: &[u8],
ext_info_provider: &dyn ExtInfoProvider
) -> Result<Self, ParseError>
pub fn try_parse(
data: &[u8],
ext_info_provider: &dyn ExtInfoProvider
) -> Result<Self, ParseError>
Parse an X11 error.
Trait Implementations
impl Eq for X11Error
impl StructuralEq for X11Error
impl StructuralPartialEq for X11Error
Auto Trait Implementations
impl RefUnwindSafe for X11Error
impl Send for X11Error
impl Sync for X11Error
impl Unpin for X11Error
impl UnwindSafe for X11Error
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