Enum breadx::error::BreadError [−][src]
pub enum BreadError {
Show variants
StaticMsg(&'static str),
Msg(String),
StaticErr(&'static BreadError),
UnableToParseConnection,
UnableToOpenConnection,
Io(Arc<IoError>),
FailedToConnect,
FailedToAuthorize,
BadObjectRead(Option<&'static str>),
ExtensionNotPresent(Cow<'static, str>),
NoMatchingRequest(u16),
XProtocol {
error_code: ErrorCode,
minor_code: u8,
major_code: u8,
sequence: u16,
},
ClosedConnection,
LoadLibraryFailed(&'static str),
}Expand description
The common error type returned by breadx functions.
Variants
StaticMsg(&'static str)Msg(String)StaticErr(&'static BreadError)Unable to parse connection name.
Unable to open connection to X11 server.
IO Error
Unable to open connection to the X11 server.
X11 server rejected our authorization.
Object was unable to be parsed
Required extension was not present.
NoMatchingRequest(u16)Required request was not present.
An error propogated by the X11 server.
The X connection closed without telling us.
LoadLibraryFailed(&'static str)Failed to load a library; exists for the benefit of breadglx
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for BreadErrorimpl Send for BreadErrorimpl Sync for BreadErrorimpl Unpin for BreadErrorimpl !UnwindSafe for BreadErrorBlanket Implementations
Mutably borrows from an owned value. Read more