Enum wayland_client::ConnectError
source · pub enum ConnectError {
NoWaylandLib,
XdgRuntimeDirNotSet,
NoCompositorListening,
InvalidName,
InvalidFd,
}
Expand description
Enum representing the possible reasons why connecting to the wayland server failed
Variants§
NoWaylandLib
The library was compiled with the dlopen
feature, and the libwayland-client.so
library could not be found at runtime
XdgRuntimeDirNotSet
The XDG_RUNTIME_DIR
variable is not set while it should be
NoCompositorListening
Any needed library was found, but the listening socket of the server was not.
Most of the time, this means that the program was not started from a wayland session.
InvalidName
The provided socket name is invalid
InvalidFd
The FD provided in WAYLAND_SOCKET
was invalid
Trait Implementations§
source§impl Debug for ConnectError
impl Debug for ConnectError
source§impl Display for ConnectError
impl Display for ConnectError
source§impl Error for ConnectError
impl Error for ConnectError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl UnwindSafe for ConnectError
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