pub enum RegionDbError {
Sqlite(Error),
UnsupportedFormat {
found: i64,
supported: i64,
},
NotARegionDatabase,
MissingSpatialIndex,
Geometry(GeometryError),
Position(MortonError),
}Expand description
Anything that can go wrong opening or querying a region database.
Variants§
Sqlite(Error)
The underlying SQLite call failed.
UnsupportedFormat
The file declares a format version this crate does not implement.
NotARegionDatabase
The file is not a region database at all.
MissingSpatialIndex
The database needs the R-tree candidate path and this SQLite build has no R-tree module.
Geometry(GeometryError)
A geometry blob could not be decoded.
Position(MortonError)
A position could not be placed on the lookup grid.
Trait Implementations§
Source§impl Debug for RegionDbError
impl Debug for RegionDbError
Source§impl Display for RegionDbError
impl Display for RegionDbError
Source§impl Error for RegionDbError
impl Error for RegionDbError
1.30.0§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§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 RegionDbError
impl From<Error> for RegionDbError
Source§impl From<GeometryError> for RegionDbError
impl From<GeometryError> for RegionDbError
Source§fn from(error: GeometryError) -> Self
fn from(error: GeometryError) -> Self
Converts to this type from the input type.
Source§impl From<MortonError> for RegionDbError
impl From<MortonError> for RegionDbError
Source§fn from(error: MortonError) -> Self
fn from(error: MortonError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RegionDbError
impl !RefUnwindSafe for RegionDbError
impl Send for RegionDbError
impl Sync for RegionDbError
impl Unpin for RegionDbError
impl !UnwindSafe for RegionDbError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more