Enum ggez::error::GameError [−][src]
An enum containing all kinds of game framework errors.
Variants
FilesystemError(String)
An error in the filesystem layout
ConfigError(String)
An error in the config file
EventLoopError(String)
Happens when an winit::event_loop::EventLoopProxy
attempts to
wake up an winit::event_loop::EventLoop
that no longer exists.
ResourceLoadError(String)
An error trying to load a resource, such as getting an invalid image file.
Unable to find a resource; the Vec
is the paths it searched for and associated errors
RenderError(String)
Something went wrong in the renderer
Something went wrong in the audio playback
WindowError(String)
Something went wrong trying to set or get window properties.
WindowCreationError(Arc<CreationError>)
Something went wrong trying to create a window
Something went wrong trying to read from a file
FontError(String)
Something went wrong trying to load/render a font
VideoError(String)
Something went wrong applying video settings.
ShaderProgramError(ProgramError)
Something went wrong compiling shaders
Something went wrong with the gilrs
gamepad-input library.
LyonError(String)
Something went wrong with the lyon
shape-tesselation library.
CustomError(String)
A custom error type for use by users of ggez. This lets you handle custom errors that may happen during your game (such as, trying to load a malformed file for a level) using the same mechanism you handle ggez's other errors.
Please include an informative message with the error.
Trait Implementations
impl Clone for GameError
[src]
impl Debug for GameError
[src]
impl Display for GameError
[src]
impl Error for GameError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<CombinedError> for GameError
[src]
fn from(e: CombinedError) -> GameError
[src]
impl From<ContextError> for GameError
[src]
fn from(s: ContextError) -> GameError
[src]
impl<S, D> From<CopyError<S, D>> for GameError where
S: Debug,
D: Debug,
[src]
S: Debug,
D: Debug,
impl From<CreationError> for GameError
[src]
fn from(e: CreationError) -> GameError
[src]
impl From<CreationError> for GameError
[src]
fn from(s: CreationError) -> GameError
[src]
impl From<CreationError> for GameError
[src]
fn from(e: CreationError) -> Self
[src]
impl From<DecoderError> for GameError
[src]
fn from(e: DecoderError) -> GameError
[src]
impl From<Error> for GameError
[src]
impl From<Error> for GameError
[src]
impl From<Error> for GameError
[src]
impl From<Error> for GameError
[src]
impl From<Error> for GameError
[src]
impl<T> From<EventLoopClosed<T>> for GameError
[src]
fn from(_: EventLoopClosed<T>) -> GameError
[src]
impl From<GeometryBuilderError> for GameError
[src]
impl From<ImageError> for GameError
[src]
fn from(e: ImageError) -> GameError
[src]
impl From<PipelineStateError<String>> for GameError
[src]
fn from(e: PipelineStateError<String>) -> GameError
[src]
impl From<PlayError> for GameError
[src]
impl From<ProgramError> for GameError
[src]
fn from(e: ProgramError) -> GameError
[src]
impl From<ResourceViewError> for GameError
[src]
fn from(e: ResourceViewError) -> GameError
[src]
impl From<TargetViewError> for GameError
[src]
fn from(e: TargetViewError) -> GameError
[src]
impl From<TessellationError> for GameError
[src]
impl<T> From<UpdateError<T>> for GameError where
T: Debug + Display + 'static,
[src]
T: Debug + Display + 'static,
fn from(e: UpdateError<T>) -> GameError
[src]
impl From<ZipError> for GameError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for GameError
[src]
impl !Send for GameError
[src]
impl !Sync for GameError
[src]
impl Unpin for GameError
[src]
impl !UnwindSafe for GameError
[src]
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,