Enum penrose::draw::DrawError [−][src]
pub enum DrawError {
InvalidHexColor(String),
ParseInt(ParseIntError),
Raw(String),
UnknownFont(String),
Xcb(XcbError),
X(XError),
Cairo(Error),
}
Expand description
Enum to store the various ways that operations can fail when rendering windows
Variants
InvalidHexColor(String)
Tuple Fields
0: String
A hex literal provided to create a Color was not RGB / RGBA
ParseInt(ParseIntError)
Tuple Fields
A string hex code was invalid as a hex literal
Raw(String)
Tuple Fields
0: String
A generic error type for use in user code when needing to construct a simple DrawError.
UnknownFont(String)
Tuple Fields
0: String
An attempt was made to use a font that had not beed registered
Xcb(XcbError)
Tuple Fields
0: XcbError
Wrapper around XCB implementation errors for draw traits
X(XError)
Tuple Fields
0: XError
Something went wrong when communicating with the X server
Cairo(Error)
Tuple Fields
0: Error
An attempt to use the cairo C API failed when using an XCB implementation of Draw or DrawContext
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for DrawError
impl !UnwindSafe for DrawError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more