pub enum TileSourceError {
ResourceNotFound {
resource_id: String,
},
LoadError(String),
}Expand description
Error type for tile source operations.
Variants§
ResourceNotFound
The requested resource was not found in this tile source. Callers may fall through to alternative tile loading mechanisms.
LoadError(String)
A hard error occurred during tile loading. Callers should propagate this rather than falling through.
Trait Implementations§
Source§impl Clone for TileSourceError
impl Clone for TileSourceError
Source§fn clone(&self) -> TileSourceError
fn clone(&self) -> TileSourceError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TileSourceError
impl Debug for TileSourceError
Source§impl Display for TileSourceError
impl Display for TileSourceError
Source§impl Error for TileSourceError
impl Error for TileSourceError
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 TileSourceError
impl RefUnwindSafe for TileSourceError
impl Send for TileSourceError
impl Sync for TileSourceError
impl Unpin for TileSourceError
impl UnsafeUnpin for TileSourceError
impl UnwindSafe for TileSourceError
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