pub enum PmtError {
Show 17 variants
InvalidMagicNumber,
UnsupportedPmTilesVersion,
InvalidCompression,
UnsupportedCompression(Compression),
InvalidEntry,
InvalidHeader,
InvalidMetadata,
InvalidMetadataUtf8Encoding(FromUtf8Error),
InvalidTileType,
Reading(Error),
UnableToOpenMmapFile,
UnexpectedNumberOfBytesReturned(usize, usize),
RangeRequestsUnsupported,
ResponseBodyTooLong(usize, usize),
Http(Error),
InvalidHeaderValue(InvalidHeaderValue),
S3(S3Error),
}
Expand description
Errors that can occur while reading PMTiles
files.
Variants§
InvalidMagicNumber
UnsupportedPmTilesVersion
InvalidCompression
UnsupportedCompression(Compression)
InvalidEntry
InvalidHeader
InvalidMetadata
InvalidMetadataUtf8Encoding(FromUtf8Error)
InvalidTileType
Reading(Error)
UnableToOpenMmapFile
UnexpectedNumberOfBytesReturned(usize, usize)
RangeRequestsUnsupported
ResponseBodyTooLong(usize, usize)
Http(Error)
InvalidHeaderValue(InvalidHeaderValue)
S3(S3Error)
Trait Implementations§
source§impl Error for PmtError
impl Error for PmtError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<FromUtf8Error> for PmtError
impl From<FromUtf8Error> for PmtError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for PmtError
impl From<InvalidHeaderValue> for PmtError
source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PmtError
impl !RefUnwindSafe for PmtError
impl Send for PmtError
impl Sync for PmtError
impl Unpin for PmtError
impl !UnwindSafe for PmtError
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