pub enum WmsError {
InvalidParameter(String),
MissingParameter(String),
LayerNotFound(String),
InvalidCrs(String),
InvalidBbox(String),
Rendering(String),
Gdal(OxiGdalError),
Registry(RegistryError),
UnsupportedFormat(String),
}Expand description
WMS errors
Variants§
InvalidParameter(String)
Invalid request parameter
MissingParameter(String)
Missing required parameter
LayerNotFound(String)
Layer not found
InvalidCrs(String)
Invalid CRS
InvalidBbox(String)
Invalid bounding box
Rendering(String)
Rendering error
Gdal(OxiGdalError)
OxiGDAL error
Registry(RegistryError)
Registry error
UnsupportedFormat(String)
Unsupported format
Trait Implementations§
Source§impl Error for WmsError
impl Error for WmsError
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<OxiGdalError> for WmsError
impl From<OxiGdalError> for WmsError
Source§fn from(source: OxiGdalError) -> Self
fn from(source: OxiGdalError) -> Self
Converts to this type from the input type.
Source§impl From<RegistryError> for WmsError
impl From<RegistryError> for WmsError
Source§fn from(source: RegistryError) -> Self
fn from(source: RegistryError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for WmsError
impl IntoResponse for WmsError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for WmsError
impl !RefUnwindSafe for WmsError
impl Send for WmsError
impl Sync for WmsError
impl Unpin for WmsError
impl UnsafeUnpin for WmsError
impl !UnwindSafe for WmsError
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