pub enum Error {
Show 23 variants
ClientIsNotVisible(Xid),
Custom(String),
InsufficientWorkspaces {
n_ws: usize,
n_screens: usize,
},
InvalidClientMessage {
format: u8,
},
InvalidHexColor {
hex_code: String,
},
InvalidHints {
reason: String,
},
Io(Error),
InvalidUtf8(FromUtf8Error),
InvalidPropertyData {
id: Xid,
ty: String,
prop: String,
},
NonUniqueTags {
tags: Vec<String>,
},
NoScreens,
ParseInt(ParseIntError),
Randr(String),
UnknownClient(Xid),
UnknownKeyName {
name: String,
},
UnknownModifier {
name: String,
},
UnknownMouseButton {
button: u8,
},
UnknownStateExtension {
type_id: TypeId,
},
X11rbConnect(ConnectError),
X11rbConnection(ConnectionError),
X11rbReplyError(ReplyError),
X11rbReplyOrIdError(ReplyOrIdError),
X11rbX11Error(X11Error),
}
Expand description
Error variants from the core penrose library.
Variants§
ClientIsNotVisible(Xid)
An operation requiring the client to be on a screen was requested on a client window that is not currently visible
Custom(String)
A custom error message from user code or extensions
InsufficientWorkspaces
There were not enough workspaces to cover the number of connected screens
InvalidClientMessage
Data received as part of a client message had an invalid format
InvalidHexColor
Attempt to create a Color
from an invalid hex string
InvalidHints
A window hints message was received but unable to be parsed
Io(Error)
IO error
InvalidUtf8(FromUtf8Error)
Invalid UTF8 encoded string
InvalidPropertyData
Fields
Data received from the X server when requesting a window property was invalid
NonUniqueTags
Fields
The set of non-unique tags
Duplicate tags were provided for one or more workspaces
NoScreens
Penrose is running without any screens to connect to
ParseInt(ParseIntError)
ParseIntError
Randr(String)
There was a problem initialising randr
UnknownClient(Xid)
An operation was requested on a client window that is unknown
UnknownKeyName
A keybinding has been specified for an unknown key name for this machine.
UnknownModifier
An unknown character has been used to specify a modifier key
UnknownMouseButton
Fields
The button ID that was pressed
An unknown mouse button was pressed
UnknownStateExtension
An attempt was made to fetch a state extension for a type that has not been stored
X11rbConnect(ConnectError)
An error that occurred while connecting to an X11 server
X11rbConnection(ConnectionError)
An error that occurred on an already established X11 connection
X11rbReplyError(ReplyError)
An error that occurred with some request.
X11rbReplyOrIdError(ReplyOrIdError)
An error caused by some request or by the exhaustion of IDs.
X11rbX11Error(X11Error)
Representation of an X11 error packet that was sent by the server.