pub enum GpkgError {
InvalidFormat(String),
Io(Error),
InvalidGeometryMagic,
WkbParseError(String),
UnknownWkbType(u32),
InsufficientData {
needed: usize,
available: usize,
},
}Expand description
Errors that can occur when parsing GeoPackage / SQLite files.
Variants§
InvalidFormat(String)
The binary data does not conform to the expected format.
Io(Error)
An I/O error occurred while reading.
InvalidGeometryMagic
The GeoPackage geometry blob does not start with the expected magic bytes (0x47 0x50).
WkbParseError(String)
A WKB geometry could not be parsed.
UnknownWkbType(u32)
The WKB type code is not recognised.
InsufficientData
A parse operation needed more bytes than were available.
Trait Implementations§
Source§impl Error for GpkgError
impl Error for GpkgError
Source§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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for GpkgError
impl !RefUnwindSafe for GpkgError
impl Send for GpkgError
impl Sync for GpkgError
impl Unpin for GpkgError
impl UnsafeUnpin for GpkgError
impl !UnwindSafe for GpkgError
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
Mutably borrows from an owned value. Read more