logo

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

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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace #53487)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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