pub enum AgError {
Show 17 variants
ResourceLimit(String),
Overloaded,
DeadlineExceeded,
Cancelled,
Query {
name: String,
msg: String,
},
UnknownTms(String),
UnknownColormap(String),
TileOutOfBounds {
z: u8,
x: u32,
y: u32,
},
UnsupportedPixel(String),
MissingGeo(&'static str),
ColorFormula(String),
Warp(String),
ProjectionDomain(String),
Io(Error),
Tiff(String),
Mosaic(String),
Encode(ImageError),
}Expand description
Reader, rendering and request-control failures.
Request admission failures are returned without waiting for capacity. Cancellation and deadlines stop cooperative work; they do not forcibly stop CPU closures that are already running.
Variants§
ResourceLimit(String)
An allocation, source shape or work request exceeds a configured limit.
Overloaded
The request limiter has no free admission slot.
DeadlineExceeded
The request’s configured or per-call deadline expired.
Cancelled
The caller explicitly cancelled the request.
Query
A query, style document or band selection is invalid.
Fields
UnknownTms(String)
The requested tile matrix set name is not supported.
UnknownColormap(String)
The requested built-in color map name is not supported.
TileOutOfBounds
A tile coordinate is outside its matrix or supported zoom range.
UnsupportedPixel(String)
Unsupported pixel data, channel layout or unavailable output format.
MissingGeo(&'static str)
Required georeferencing metadata is absent.
ColorFormula(String)
A color formula could not be parsed or applied.
Warp(String)
Reprojection setup or raster warping failed.
ProjectionDomain(String)
A coordinate fell outside the source/target projection’s valid domain. Not a failure: the tiler treats this as “nothing here” and returns a transparent tile (mirrors rio-tiler/titiler).
Io(Error)
An underlying I/O operation failed.
Tiff(String)
TIFF metadata, pixel decoding, image encoding or a source operation failed.
Mosaic(String)
Mosaic discovery, asset access or composition failed.
Encode(ImageError)
An image encoder failed.
Implementations§
Trait Implementations§
Source§impl Error for AgError
impl Error for AgError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ImageError> for AgError
impl From<ImageError> for AgError
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for AgError
impl !UnwindSafe for AgError
impl Freeze for AgError
impl Send for AgError
impl Sync for AgError
impl Unpin for AgError
impl UnsafeUnpin for AgError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more