#[non_exhaustive]pub enum ConnError {
NoDisplay,
NoLogname,
Io(PathBuf, Error),
BadScreen(i32),
ServerNotFound,
X11(Error),
}Expand description
Error during establishing connection to the Sawfish server.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoDisplay
No display specified and DISPLAY environment variable not set.
NoLogname
LOGNAME environment variable not set.
This is relevant when connecting to Unix socket since without the login name socket name cannot be determined.
Io(PathBuf, Error)
An I/O error during establishing of the connection (e.g. Unix socket does not exist or user lacks permissions to access it).
BadScreen(i32)
Available on crate feature
experimental-xcb only.Invalid X11 display screen number.
ServerNotFound
Available on crate feature
experimental-xcb only.No Sawfish server found on display.
X11(Error)
Available on crate feature
experimental-xcb only.An X11 error during establishing of the connection.
Trait Implementations§
Source§impl Error for ConnError
impl Error for ConnError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ProtocolError> for ConnError
impl From<ProtocolError> for ConnError
Source§fn from(value: ProtocolError) -> Self
fn from(value: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnError
impl !RefUnwindSafe for ConnError
impl Send for ConnError
impl Sync for ConnError
impl Unpin for ConnError
impl !UnwindSafe for ConnError
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