pub enum MapDataError {
SqlError(Error),
RedisError(RedisError),
LevelDbError(Status),
MapBlockError(MapBlockError),
MapBlockNonexistent(Position),
IoError(Error),
ParseIntError(ParseIntError),
}Expand description
An error in the underlying database or in the map block binary format
Variants§
SqlError(Error)
Available on crate features
sqlite or postgres only.sqlx based error. This covers Sqlite and Postgres errors.
RedisError(RedisError)
Available on crate feature
redis only.Redis connection error
LevelDbError(Status)
Available on crate feature
leveldb only.LevelDB error
MapBlockError(MapBlockError)
Error while reading a map block
MapBlockNonexistent(Position)
This mapblock does not exist
IoError(Error)
An IO related error
ParseIntError(ParseIntError)
An error while parsing a string as integer value
Trait Implementations§
Source§impl Debug for MapDataError
impl Debug for MapDataError
Source§impl Display for MapDataError
impl Display for MapDataError
Source§impl Error for MapDataError
impl Error for MapDataError
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 MapDataError
impl From<Error> for MapDataError
Source§impl From<Error> for MapDataError
impl From<Error> for MapDataError
Source§impl From<MapBlockError> for MapDataError
impl From<MapBlockError> for MapDataError
Source§fn from(source: MapBlockError) -> Self
fn from(source: MapBlockError) -> Self
Converts to this type from the input type.
Source§impl From<MapDataError> for WorldError
impl From<MapDataError> for WorldError
Source§fn from(source: MapDataError) -> Self
fn from(source: MapDataError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for MapDataError
impl From<ParseIntError> for MapDataError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<RedisError> for MapDataError
impl From<RedisError> for MapDataError
Source§fn from(source: RedisError) -> Self
fn from(source: RedisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MapDataError
impl !RefUnwindSafe for MapDataError
impl Send for MapDataError
impl Sync for MapDataError
impl Unpin for MapDataError
impl !UnwindSafe for MapDataError
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