pub enum TileCacheError {
InvalidParam,
OutOfMemory {
resource: &'static str,
},
TileNotFound {
x: i32,
y: i32,
},
ObstacleNotFound,
InvalidRegionData,
InvalidAreaData,
Build(BuildError),
Detour(DetourError),
}Expand description
Error from tile cache operations
Variants§
InvalidParam
OutOfMemory
TileNotFound
ObstacleNotFound
InvalidRegionData
InvalidAreaData
Build(BuildError)
Detour(DetourError)
Trait Implementations§
Source§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
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<BuildError> for TileCacheError
impl From<BuildError> for TileCacheError
Source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
Source§impl From<DetourError> for TileCacheError
impl From<DetourError> for TileCacheError
Source§fn from(source: DetourError) -> Self
fn from(source: DetourError) -> 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