pub enum TerrainError {
Decode(String),
Network(String),
UnsupportedFormat(String),
Other(String),
}Expand description
Errors that can occur during terrain operations.
Variants§
Decode(String)
Failed to decode elevation data.
Network(String)
Network error fetching elevation tiles.
UnsupportedFormat(String)
The requested format is not supported.
Other(String)
Generic error.
Trait Implementations§
Source§impl Clone for TerrainError
impl Clone for TerrainError
Source§fn clone(&self) -> TerrainError
fn clone(&self) -> TerrainError
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 TerrainError
impl Debug for TerrainError
Source§impl Display for TerrainError
impl Display for TerrainError
Source§impl Error for TerrainError
impl Error for TerrainError
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 TerrainError
impl RefUnwindSafe for TerrainError
impl Send for TerrainError
impl Sync for TerrainError
impl Unpin for TerrainError
impl UnsafeUnpin for TerrainError
impl UnwindSafe for TerrainError
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