pub enum Error {
Show 17 variants
Todo(&'static str),
SystemTimeError {
source: SystemTimeError,
},
CannotRestoreEntityCounter {
path: OsString,
},
CannotRestoreStoreFromDirectory {
path: OsString,
},
MsgPackDecodeError {
source: Error,
},
MsgPackEncodeError {
source: Error,
},
JsonError {
source: Error,
},
IoError {
source: Error,
},
CannotParseInteger {
source: ParseIntError,
},
KeyNotFound {
key: String,
},
KeyAlreadyFound {
store: String,
key: String,
},
MultipleCorrespondingKeysFound {
value: String,
},
NoParentEntityFound {
entity: usize,
},
MoreThanOneParentFound {
entity: usize,
},
CannotFindKeyInStore {
key: usize,
},
StoreConversionError,
CanInitializeOnlyOnce {
object: String,
},
}Expand description
Error type for ECS. We allow missing docs, the names should be self-explanatory.
Variants§
Todo(&'static str)
SystemTimeError
Fields
§
source: SystemTimeErrorCannotRestoreEntityCounter
CannotRestoreStoreFromDirectory
MsgPackDecodeError
MsgPackEncodeError
JsonError
IoError
CannotParseInteger
Fields
§
source: ParseIntErrorKeyNotFound
KeyAlreadyFound
MultipleCorrespondingKeysFound
NoParentEntityFound
MoreThanOneParentFound
CannotFindKeyInStore
StoreConversionError
CanInitializeOnlyOnce
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.