pub enum BasemapError {
InvalidBbox(String),
InvalidDimensions(u32, u32),
StyleFetchFailed {
url: String,
status: u16,
},
StyleParseError(String),
TileFetchFailed {
url: String,
status: u16,
},
TileIsWebPage {
url: String,
},
TileDecodeError(String),
RenderError(String),
MaxTilesExceeded {
requested: u32,
limit: u32,
},
InvalidLayerFilter(String),
InvalidInput(String),
}Variants§
InvalidBbox(String)
InvalidDimensions(u32, u32)
StyleFetchFailed
StyleParseError(String)
TileFetchFailed
TileIsWebPage
A tile URL answered with a web page (a sign-in or error page), as some services do for a wrong or missing key. The message leaves the URL out: it may carry the key.
TileDecodeError(String)
RenderError(String)
MaxTilesExceeded
InvalidLayerFilter(String)
InvalidInput(String)
Implementations§
Source§impl BasemapError
impl BasemapError
Sourcepub fn kind(&self) -> &'static str
pub fn kind(&self) -> &'static str
Return a stable, coarse category string for mapping to typed Python exceptions.
Variants:
"validation"→ValidationError(invalid input before any I/O)"style"→StyleError(style fetch or parse failure)"network"→NetworkError(tile fetch failure)"render"→BasemapError(everything else — GPU / decode)
Trait Implementations§
Source§impl Debug for BasemapError
impl Debug for BasemapError
Source§impl Display for BasemapError
impl Display for BasemapError
Source§impl Error for BasemapError
impl Error for BasemapError
1.30.0 · 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 BasemapError
impl RefUnwindSafe for BasemapError
impl Send for BasemapError
impl Sync for BasemapError
impl Unpin for BasemapError
impl UnsafeUnpin for BasemapError
impl UnwindSafe for BasemapError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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