Enum gooey::HeadlessError[][src]

pub enum HeadlessError {
    Kludgine(Error),
    Gpu(Error),
    Png(EncodingError),
    Io(Error),
    ValueTooLarge(TryFromIntError),
    Ffmpeg(String),
}
Expand description

Errors that can occur while using Headless.

Variants

Kludgine(Error)

An error from kludgine occurred.

Tuple Fields of Kludgine

0: Error
Gpu(Error)

An error from easygpu occurred.

Tuple Fields of Gpu

0: Error
Png(EncodingError)

A png encoding error occurred.

Tuple Fields of Png

0: EncodingError
Io(Error)

An io error occcurred.

Tuple Fields of Io

0: Error
ValueTooLarge(TryFromIntError)

A value encountered was too large. This error shouldn’t happen in practical use cases.

Tuple Fields of ValueTooLarge

0: TryFromIntError
Ffmpeg(String)

An error occurred while interacting with ffmpeg. The contained string is the stderr output.

Tuple Fields of Ffmpeg

0: String

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)

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.

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

Returns the underlying type as Any.

Returns the underlying type as Any.

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.

Convert into T with values clamped to the color defined bounds Read more

Convert into T. The resulting color might be invalid in its color space Read more

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.

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. 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