[−][src]Enum tetra::error::TetraError
The types of error that can occur in a Tetra game.
Variants (Non-exhaustive)
PlatformError(String)
Returned when the underlying platform returns an unexpected error. This usually isn't something your game can reasonably be expected to recover from.
Returned when your game fails to load an asset. This is usually caused by an incorrect file path, or some form of permission issues.
Fields of FailedToLoadAsset
Returned when a color is invalid.
InvalidTexture(ImageError)
Returned when a texture's data is invalid.
InvalidShader(String)
Returned when a shader fails to compile.
Returned when a font could not be read.
InvalidSound(DecoderError)
Returned when a sound cannot be decoded.
Returned when not enough data is provided to fill a buffer. This may happen if you're creating a texture from raw data and you don't provide enough data.
Fields of NotEnoughData
Returned when trying to play back audio without an available device.
FailedToChangeDisplayMode(String)
Returned when your game tried to change the display settings (e.g. fullscreen, vsync) but was unable to do so.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TetraError
impl Send for TetraError
impl Sync for TetraError
impl Unpin for TetraError
impl !UnwindSafe for TetraError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,