Struct X11Error
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§
§impl X11Error
impl X11Error
pub 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
impl Eq for X11Error
impl StructuralPartialEq for X11Error
Auto Trait Implementations§
impl Freeze for X11Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)