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§
source§impl X11Error
impl X11Error
sourcepub fn try_parse(
data: &[u8],
ext_info_provider: &dyn ExtInfoProvider
) -> Result<X11Error, ParseError>
pub fn try_parse( data: &[u8], ext_info_provider: &dyn ExtInfoProvider ) -> Result<X11Error, ParseError>
Parse an X11 error.
Trait Implementations§
source§impl From<X11Error> for ReplyError
impl From<X11Error> for ReplyError
source§impl From<X11Error> for ReplyOrIdError
impl From<X11Error> for ReplyOrIdError
source§impl PartialEq for X11Error
impl PartialEq for X11Error
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more