pub enum RuntimeError {
Io(Error),
RonParsing(SpannedError),
TomlParsing(Error),
Specs(Error),
PluginSetup {
plugin: String,
source: Box<dyn Error>,
},
EmptyConfigPath,
ConfigIo {
source: Error,
},
ResourceError(ResourceError),
}Expand description
Possible errors that can occur during runtime
Variants§
Io(Error)
IO error
RonParsing(SpannedError)
RON parsing error
TomlParsing(Error)
TOML parsing error
Specs(Error)
Specs error
PluginSetup
Plugin setup error
EmptyConfigPath
No config path provided to builder
ConfigIo
Any errors related to IO and config file
ResourceError(ResourceError)
Any errors related to resources/assets
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
Source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
Source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
Source§impl From<ResourceError> for RuntimeError
impl From<ResourceError> for RuntimeError
Source§fn from(source: ResourceError) -> Self
fn from(source: ResourceError) -> Self
Converts to this type from the input type.
Source§impl From<SpannedError> for RuntimeError
impl From<SpannedError> for RuntimeError
Source§fn from(source: SpannedError) -> Self
fn from(source: SpannedError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeError
impl !RefUnwindSafe for RuntimeError
impl !Send for RuntimeError
impl !Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
impl !UnwindSafe for RuntimeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more