pub enum MobileRegionError {
DatabaseUnavailable,
NotARegionDatabase,
UnsupportedFormat,
MissingSpatialIndex,
Corrupt,
InvalidPosition,
PositionTooCoarse,
InvalidRegionCode,
}Expand description
Anything that can go wrong opening or consulting a region database.
Variants§
The database file could not be opened or read.
NotARegionDatabase
The file is not a region database at all.
UnsupportedFormat
The file declares a format version this build does not implement.
MissingSpatialIndex
The database needs SQLite’s R-tree module and this build has none.
Corrupt
The database opened but its contents could not be decoded.
InvalidPosition
The position is not a place: a non-finite or out-of-range coordinate, or an undecodable location cell.
PositionTooCoarse
The position is real but too uncertain to propose from. The answer is a better source, not a wider guess.
InvalidRegionCode
A configured region string or default-region code could not be read.
Implementations§
Source§impl MobileRegionError
impl MobileRegionError
Sourcepub const fn summary_key(self) -> &'static str
pub const fn summary_key(self) -> &'static str
Stable localization key. Rust prose is never shown directly in the UI.
Sourcepub const fn diagnostic_code(self) -> &'static str
pub const fn diagnostic_code(self) -> &'static str
Redacted diagnostic code suitable for logs and support bundles.
Trait Implementations§
Source§impl Clone for MobileRegionError
impl Clone for MobileRegionError
Source§fn clone(&self) -> MobileRegionError
fn clone(&self) -> MobileRegionError
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for MobileRegionError
impl<UT> ConvertError<UT> for MobileRegionError
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for MobileRegionError
impl Debug for MobileRegionError
Source§impl Display for MobileRegionError
impl Display for MobileRegionError
Source§impl Error for MobileRegionError
impl Error for MobileRegionError
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl<UT> FfiConverter<UT> for MobileRegionError
impl<UT> FfiConverter<UT> for MobileRegionError
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl From<RegionDbError> for MobileRegionError
impl From<RegionDbError> for MobileRegionError
Source§fn from(error: RegionDbError) -> Self
fn from(error: RegionDbError) -> Self
Source§impl<UT> Lift<UT> for MobileRegionError
impl<UT> Lift<UT> for MobileRegionError
Source§impl<UT> LiftRef<UT> for MobileRegionError
impl<UT> LiftRef<UT> for MobileRegionError
type LiftType = MobileRegionError
Source§impl<UT> LiftReturn<UT> for MobileRegionError
impl<UT> LiftReturn<UT> for MobileRegionError
Source§type ReturnType = <MobileRegionError as Lift<UT>>::FfiType
type ReturnType = <MobileRegionError as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for MobileRegionError
impl<UT> Lower<UT> for MobileRegionError
type FfiType = <MobileRegionError as FfiConverter<UT>>::FfiType
fn lower(obj: Self) -> Self::FfiType
fn write(obj: Self, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Source§impl<UT> LowerError<UT> for MobileRegionError
impl<UT> LowerError<UT> for MobileRegionError
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for MobileRegionError
impl<UT> LowerReturn<UT> for MobileRegionError
Source§type ReturnType = <MobileRegionError as Lower<UT>>::FfiType
type ReturnType = <MobileRegionError as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl PartialEq for MobileRegionError
impl PartialEq for MobileRegionError
Source§impl<UT> TypeId<UT> for MobileRegionError
impl<UT> TypeId<UT> for MobileRegionError
impl Copy for MobileRegionError
impl Eq for MobileRegionError
impl StructuralPartialEq for MobileRegionError
Auto Trait Implementations§
impl Freeze for MobileRegionError
impl RefUnwindSafe for MobileRegionError
impl Send for MobileRegionError
impl Sync for MobileRegionError
impl Unpin for MobileRegionError
impl UnwindSafe for MobileRegionError
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.