[−][src]Enum penrose::xcb::XcbError
Enum to store the various ways that operations can fail inside of the XCB implementations of penrose traits.
Variants
Connection(ConnError)
Unable to establish a connection to the X server
EmptyResponse(String)
A xcb query failed to return a value
Io(Error)
An IO Error was encountered
A requested client property was empty
No screens were found
NonUtf8Prop(FromUtf8Error)
A string property on a window was invalid utf8
QueryFailed(&'static str)
An attempt to determine a certain property of the running system failed
Randr(String)
A query via the randr API was unsuccessful
Raw(String)
A generic error type for use in user code when needing to construct a simple XcbError.
Strum(ParseError)
Parsing a strum generated enum from a str failed.
Screen data for an unknown screen was requested
XcbGeneric(Error<xcb_generic_error_t>)
Wrapper around low level XCB C API errors
Pango(String)
Error in using the pango API
UnintialisedSurface(WinId)
An attempt was made to fetch a surface for a client before creating it
UnknownMouseButton(u8)
A user specified mouse binding contained an invalid button
Trait Implementations
impl Debug for XcbError
[src]
impl Display for XcbError
[src]
impl Error for XcbError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ConnError> for XcbError
[src]
impl From<Error<xcb_generic_error_t>> for XcbError
[src]
pub fn from(source: Error<xcb_generic_error_t>) -> Self
[src]
impl From<Error> for XcbError
[src]
impl From<FromUtf8Error> for XcbError
[src]
pub fn from(source: FromUtf8Error) -> Self
[src]
impl From<ParseError> for XcbError
[src]
pub fn from(source: ParseError) -> Self
[src]
impl From<XcbError> for DrawError
[src]
impl From<XcbError> for PenroseError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for XcbError
[src]
impl Send for XcbError
[src]
impl Sync for XcbError
[src]
impl Unpin for XcbError
[src]
impl !UnwindSafe for XcbError
[src]
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,