Enum pill_core::EngineError[][src]

pub enum EngineError<'a> {
Show 34 variants InvalidGameConfig(), NoActiveScene, InvalidSceneHandle, SceneAlreadyExists(String), InvalidSceneName(String), InvalidEntityHandle, EntityLimitReached, NoActiveCamera, ComponentAlreadyRegistered(StringString), ComponentNotRegistered(StringString), ComponentAlreadyExists(String), GlobalComponentAlreadyExists(String), GlobalComponentNotFound(String), GlobalComponentCannotBeRemoved(String), SystemUpdateFailed(StringString), SystemAlreadyExists(StringString), SystemNotFound(StringString), SystemUpdatePhaseNotFound(String), InvalidAssetPath(String), InvalidAssetFormat(&'a [&'a str]String), ResourceNotRegistered(String), ResourceAlreadyExists(StringString), InvalidResourceHandle(String), InvalidResourceName(StringString), InvalidModelFile(String), InvalidModelFileMultipleMeshes(String), RemoveDefaultResource(String), WrongResourceName(String), ResourceLimitReached(String), WrongRenderingOrder(StringString), WrongTextureType(StringStringString), MaterialParameterSlotNotFound(StringString), MaterialTextureSlotNotFound(String), Other(String),
}

Variants

InvalidGameConfig()

Tuple Fields

NoActiveScene

InvalidSceneHandle

SceneAlreadyExists(String)

Tuple Fields

0: String

InvalidSceneName(String)

Tuple Fields

0: String

InvalidEntityHandle

EntityLimitReached

NoActiveCamera

ComponentAlreadyRegistered(StringString)

Tuple Fields

0: String
1: String

ComponentNotRegistered(StringString)

Tuple Fields

0: String
1: String

ComponentAlreadyExists(String)

Tuple Fields

0: String

GlobalComponentAlreadyExists(String)

Tuple Fields

0: String

GlobalComponentNotFound(String)

Tuple Fields

0: String

GlobalComponentCannotBeRemoved(String)

Tuple Fields

0: String

SystemUpdateFailed(StringString)

Tuple Fields

0: String
1: String

SystemAlreadyExists(StringString)

Tuple Fields

0: String
1: String

SystemNotFound(StringString)

Tuple Fields

0: String
1: String

SystemUpdatePhaseNotFound(String)

Tuple Fields

0: String

InvalidAssetPath(String)

Tuple Fields

0: String

InvalidAssetFormat(&'a [&'a str]String)

Tuple Fields

0: &'a [&'a str]
1: String

ResourceNotRegistered(String)

Tuple Fields

0: String

ResourceAlreadyExists(StringString)

Tuple Fields

0: String
1: String

InvalidResourceHandle(String)

Tuple Fields

0: String

InvalidResourceName(StringString)

Tuple Fields

0: String
1: String

InvalidModelFile(String)

Tuple Fields

0: String

InvalidModelFileMultipleMeshes(String)

Tuple Fields

0: String

RemoveDefaultResource(String)

Tuple Fields

0: String

WrongResourceName(String)

Tuple Fields

0: String

ResourceLimitReached(String)

Tuple Fields

0: String

WrongRenderingOrder(StringString)

Tuple Fields

0: String
1: String

WrongTextureType(StringStringString)

Tuple Fields

0: String
1: String
2: String

MaterialParameterSlotNotFound(StringString)

Tuple Fields

0: String
1: String

MaterialTextureSlotNotFound(String)

Tuple Fields

0: String

Other(String)

Tuple Fields

0: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.