Skip to main content

SearchError

Enum SearchError 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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.

Fields

§format: String

What was asked for.

§

OsmPbf(Error)

The OSM PBF fails while it is read.

§

ReadOsmPbf

The OSM PBF cannot be opened.

Fields

§path: PathBuf

The PBF.

§source: Error

The reader error.

§

CreateOutput

The output file cannot be created.

Fields

§path: PathBuf

The output file.

§source: Error

What the operating system said.

§

CreateBuildingsOutput

The buildings bulk file cannot be created.

Fields

§path: PathBuf

The bulk file.

§source: Error

What the operating system said.

§

CreateScratch

The scratch directory of the .glx writer cannot be created.

Fields

§path: PathBuf

The scratch directory.

§source: Error

What the operating system said.

§

CreateTmpDir

The --tmpdir folder (or the system temporary folder) cannot be created.

Fields

§path: PathBuf

The directory.

§source: Error

What the operating system said.

§

CreateDedupBuckets

The dedup bucket files cannot be created.

Fields

§dir: PathBuf

The directory of the buckets.

§source: Error

What the operating system said.

§

StartDedup(Error)

The OSM dedup cannot start.

§

ReadSource

An Overture file cannot be read.

Fields

§path: PathBuf

The Parquet file.

§source: GeolithError

The reader error.

§

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.

Fields

§path: PathBuf

The .glx file.

§source: Error

What the operating system said.

§

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.

Fields

§name: String

The file stem.

§

WriteDdl

The Postgres DDL file cannot be written.

Fields

§path: PathBuf

The .sql file.

§source: Error

What the operating system said.

§

OpenImportance

The Wikimedia importance file cannot be opened.

Fields

§path: PathBuf

The file.

§source: Error

What the operating system said.

§

ReadImportance

The Wikimedia importance file cannot be read.

Fields

§path: PathBuf

The file.

§source: Error

What the reader said.

Trait Implementations§

Source§

impl Debug for SearchError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for SearchError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for SearchError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Replaced by Error::source.
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for SearchError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for SearchError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<GeolithError> for SearchError

Source§

fn from(source: GeolithError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !RefUnwindSafe for SearchError

§

impl !UnwindSafe for SearchError

§

impl Forget for SearchError

§

impl Freeze for SearchError
where *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
where Repr: Send, RawVecInner: Send, BoxRaw<dyn Error + Sync + Send>: Send, BoxRaw<ErrorImpl>: Send, BoxRaw<ErrorKind>: Send, BoxRaw<GeolithError>: Send,

§

impl Sync for SearchError
where Repr: Sync, RawVecInner: Sync, BoxRaw<dyn Error + Sync + Send>: Sync, BoxRaw<ErrorImpl>: Sync, BoxRaw<ErrorKind>: Sync, BoxRaw<GeolithError>: Sync,

§

impl Unpin for SearchError
where *const () is !null: Unpin, &'static SimpleMessage: Unpin, *const Custom is !null: Unpin, *const u8 is !null: Unpin, Box<dyn Error + Sync + Send>: Unpin, Box<ErrorImpl>: Unpin, Box<ErrorKind>: Unpin, Box<GeolithError>: Unpin,

§

impl UnsafeUnpin for SearchError

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool