#[non_exhaustive]pub enum SearchError {
Show 23 variants
Geolith(GeolithError),
Io(Error),
InvalidBbox(GeolithError),
IndiaOutlineRequired,
UnknownFormat {
format: String,
},
OsmPbf(Error),
ReadOsmPbf {
path: PathBuf,
source: Error,
},
CreateOutput {
path: PathBuf,
source: Error,
},
CreateBuildingsOutput {
path: PathBuf,
source: Error,
},
CreateScratch {
path: PathBuf,
source: Error,
},
CreateTmpDir {
path: PathBuf,
source: Error,
},
CreateDedupBuckets {
dir: PathBuf,
source: Error,
},
StartDedup(Error),
ReadSource {
path: PathBuf,
source: GeolithError,
},
WriteRecord(Error),
WriteBuildingDocument(Error),
InitPgCopy(Error),
WriteGlx(Error),
AddCredit {
path: PathBuf,
source: Error,
},
InvalidTableName {
name: String,
},
WriteDdl {
path: PathBuf,
source: Error,
},
OpenImportance {
path: PathBuf,
source: Error,
},
ReadImportance {
path: PathBuf,
source: Error,
},
}Expand description
Why a geocoding build failed.
Each variant names the step that failed. The path involved is a field of
the variant, and the error underneath is its source.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Geolith(GeolithError)
A reader or writer of the geolith library failed.
Io(Error)
A file operation failed.
InvalidBbox(GeolithError)
--bbox is not west,south,east,north.
IndiaOutlineRequired
The build area touches Survey of India land and no outline was given.
UnknownFormat
--geocoding-format names no output format.
OsmPbf(Error)
The OSM PBF fails while it is read.
ReadOsmPbf
The OSM PBF cannot be opened.
CreateOutput
The output file cannot be created.
CreateBuildingsOutput
The buildings bulk file cannot be created.
CreateScratch
The scratch directory of the .glx writer cannot be created.
CreateTmpDir
The --tmpdir folder (or the system temporary folder) cannot be
created.
CreateDedupBuckets
The dedup bucket files cannot be created.
StartDedup(Error)
The OSM dedup cannot start.
ReadSource
An Overture file cannot be read.
WriteRecord(Error)
A geocoding record cannot be written.
WriteBuildingDocument(Error)
A building document cannot be written.
InitPgCopy(Error)
The pg-copy writer cannot start.
WriteGlx(Error)
The .glx file cannot be finished.
AddCredit
The credit cannot be added to the .glx file.
InvalidTableName
The output file’s stem cannot be a SQL identifier. It goes unquoted
into the DDL, so only letters, digits and _ (a hyphen becomes _) are
allowed.
WriteDdl
The Postgres DDL file cannot be written.
OpenImportance
The Wikimedia importance file cannot be opened.
ReadImportance
The Wikimedia importance file cannot be read.
Trait Implementations§
Source§impl Debug for SearchError
impl Debug for SearchError
Source§impl Display for SearchError
impl Display for SearchError
Source§impl Error for SearchError
impl Error for SearchError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for SearchError
impl From<Error> for SearchError
Source§impl From<Error> for SearchError
impl From<Error> for SearchError
Source§impl From<GeolithError> for SearchError
impl From<GeolithError> for SearchError
Source§fn from(source: GeolithError) -> Self
fn from(source: GeolithError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for SearchError
impl !UnwindSafe for SearchError
impl Forget for SearchError
impl Freeze for SearchErrorwhere
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const dyn Error + Sync + Send is !null: Freeze,
PhantomData<dyn Error + Sync + Send>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const ErrorKind is !null: Freeze,
PhantomData<ErrorKind>: Freeze,
*const GeolithError is !null: Freeze,
PhantomData<GeolithError>: Freeze,
impl Move for SearchError
impl Send for SearchError
impl Sync for SearchError
impl Unpin for SearchError
impl UnsafeUnpin for SearchErrorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const dyn Error + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Error + Sync + Send>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const ErrorKind is !null: UnsafeUnpin,
PhantomData<ErrorKind>: UnsafeUnpin,
*const GeolithError is !null: UnsafeUnpin,
PhantomData<GeolithError>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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