Struct x11rb::x11_utils::X11Error [−][src]
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]
data: &[u8],
ext_info_provider: &dyn ExtInfoProvider
) -> Result<Self, ParseError>
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
impl RefUnwindSafe for X11Error
impl Send for X11Error
impl Sync for X11Error
impl Unpin for X11Error
impl UnwindSafe for X11Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,