pub enum TileCacheError {
Miss {
key: String,
},
Full {
current_size: usize,
max_size: usize,
},
InvalidCoordinates {
level: u32,
x: u32,
y: u32,
reason: String,
},
SizeMismatch {
expected: usize,
actual: usize,
},
EvictionFailed {
message: String,
},
}Expand description
Tile cache errors
Variants§
Miss
Cache miss
Full
Cache full
InvalidCoordinates
Invalid tile coordinates
SizeMismatch
Tile size mismatch
EvictionFailed
Eviction failed
Trait Implementations§
Source§impl Clone for TileCacheError
impl Clone for TileCacheError
Source§fn clone(&self) -> TileCacheError
fn clone(&self) -> TileCacheError
Returns a duplicate of the value. Read more
1.0.0 · 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 TileCacheError
impl Debug for TileCacheError
Source§impl Display for TileCacheError
impl Display for TileCacheError
Source§impl Error for TileCacheError
impl Error for TileCacheError
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()
Source§impl From<TileCacheError> for WasmError
Convert TileCacheError to WasmError
impl From<TileCacheError> for WasmError
Convert TileCacheError to WasmError
Source§fn from(err: TileCacheError) -> Self
fn from(err: TileCacheError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TileCacheError
impl RefUnwindSafe for TileCacheError
impl Send for TileCacheError
impl Sync for TileCacheError
impl Unpin for TileCacheError
impl UnsafeUnpin for TileCacheError
impl UnwindSafe for TileCacheError
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