pub enum GeometryError {
UnsupportedBigEndian,
WrongType,
InvalidValue,
IOError(Error),
UnsupportedGeoType,
}Expand description
The error type for (de-)serialization and conversion errors of spatial datatypes.
Variants
UnsupportedBigEndian
Encountered WKB data in big endian byte order.
Should not occur as MySQL only uses little endian for the spatial datatypes.
WrongType
Unexpected data type encountered (e.g. a Polygon instead of a Point).
InvalidValue
A conversion could not be performed because a value precondition was not fulfilled
For example data_types::BoundingBox requires a Polygon in a specific shape.
IOError(Error)
Deserialization failed because of a format mismatch or an I/O error happened in a underlying layer.
UnsupportedGeoType
Encountered an unsupported geometry while serializing.
Trait Implementations
sourceimpl Debug for GeometryError
impl Debug for GeometryError
sourceimpl Display for GeometryError
impl Display for GeometryError
sourceimpl Error for GeometryError
impl Error for GeometryError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for GeometryError
impl From<Error> for GeometryError
sourceimpl From<WKBReadError> for GeometryError
impl From<WKBReadError> for GeometryError
sourcefn from(e: WKBReadError) -> Self
fn from(e: WKBReadError) -> Self
Converts to this type from the input type.
sourceimpl From<WKBWriteError> for GeometryError
impl From<WKBWriteError> for GeometryError
sourcefn from(e: WKBWriteError) -> Self
fn from(e: WKBWriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for GeometryError
impl Send for GeometryError
impl Sync for GeometryError
impl Unpin for GeometryError
impl !UnwindSafe for GeometryError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Convert self to an expression for Diesel’s query builder. Read more
sourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self to an expression for Diesel’s query builder. Read more