pub enum WasmError {
Fetch(FetchError),
Canvas(CanvasError),
Worker(WorkerError),
TileCache(TileCacheError),
JsInterop(JsInteropError),
OxiGdal(String),
InvalidOperation {
operation: String,
reason: String,
},
NotFound {
resource: String,
identifier: String,
},
OutOfMemory {
requested: usize,
available: Option<usize>,
},
Timeout {
operation: String,
duration_ms: u64,
},
Format {
expected: String,
actual: String,
},
}Expand description
Comprehensive WASM error types
Variants§
Fetch(FetchError)
Fetch API errors
Canvas(CanvasError)
Canvas rendering errors
Worker(WorkerError)
Web Worker errors
TileCache(TileCacheError)
Tile cache errors
JsInterop(JsInteropError)
JavaScript interop errors
OxiGdal(String)
OxiGDAL core errors
InvalidOperation
Invalid operation
NotFound
Resource not found
OutOfMemory
Out of memory
Timeout
Timeout error
Format
Format error
Trait Implementations§
Source§impl Error for WasmError
impl Error for WasmError
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<CanvasError> for WasmError
Convert CanvasError to WasmError
impl From<CanvasError> for WasmError
Convert CanvasError to WasmError
Source§fn from(err: CanvasError) -> Self
fn from(err: CanvasError) -> Self
Converts to this type from the input type.
Source§impl From<FetchError> for WasmError
Convert FetchError to WasmError
impl From<FetchError> for WasmError
Convert FetchError to WasmError
Source§fn from(err: FetchError) -> Self
fn from(err: FetchError) -> Self
Converts to this type from the input type.
Source§impl From<JsInteropError> for WasmError
Convert JsInteropError to WasmError
impl From<JsInteropError> for WasmError
Convert JsInteropError to WasmError
Source§fn from(err: JsInteropError) -> Self
fn from(err: JsInteropError) -> Self
Converts to this type from the input type.
Source§impl From<OxiGdalError> for WasmError
Convert OxiGdalError to WasmError
impl From<OxiGdalError> for WasmError
Convert OxiGdalError to WasmError
Source§fn from(err: OxiGdalError) -> Self
fn from(err: OxiGdalError) -> Self
Converts to this type from the input type.
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.
Source§impl From<WorkerError> for WasmError
Convert WorkerError to WasmError
impl From<WorkerError> for WasmError
Convert WorkerError to WasmError
Source§fn from(err: WorkerError) -> Self
fn from(err: WorkerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WasmError
impl RefUnwindSafe for WasmError
impl Send for WasmError
impl Sync for WasmError
impl Unpin for WasmError
impl UnsafeUnpin for WasmError
impl UnwindSafe for WasmError
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