#[non_exhaustive]pub enum Error {
Show 24 variants
CannotConvertQueryToString(Map<String, Value>),
CannotConvertCql2JsonToString(Map<String, Value>),
ChronoParse(ParseError),
Cql2(Box<Error>),
GeoJson(Box<Error>),
EmptyDatetimeInterval,
FeatureNotEnabled(&'static str),
InvalidBbox(Vec<f64>, &'static str),
InvalidHeaderName(InvalidHeaderName),
InvalidHeaderValue(InvalidHeaderValue),
InvalidMethod(InvalidMethod),
Io(Error),
Join(JoinError),
ParseIntError(ParseIntError),
ParseFloatError(ParseFloatError),
Reqwest(Error),
SearchHasBboxAndIntersects(Box<Search>),
SerdeJson(Error),
SerdeUrlencodedSer(Error),
Stac(Error),
StartIsAfterEnd(DateTime<FixedOffset>, DateTime<FixedOffset>),
TryFromInt(TryFromIntError),
UrlParse(ParseError),
Unimplemented(&'static str),
}
Expand description
Crate-specific error enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CannotConvertQueryToString(Map<String, Value>)
Queries cannot be converted to strings.
CannotConvertCql2JsonToString(Map<String, Value>)
CQL2 JSON cannot (currently) be converted to strings.
TODO support conversion
ChronoParse(ParseError)
Cql2(Box<Error>)
GeoJson(Box<Error>)
EmptyDatetimeInterval
An empty datetime interval.
FeatureNotEnabled(&'static str)
Some functionality requires a certain optional feature to be enabled.
InvalidBbox(Vec<f64>, &'static str)
Invalid bounding box.
InvalidHeaderName(InvalidHeaderName)
Available on crate feature
client
only.InvalidHeaderValue(InvalidHeaderValue)
Available on crate feature
client
only.InvalidMethod(InvalidMethod)
Available on crate feature
client
only.Io(Error)
Available on crate feature
client
only.Join(JoinError)
Available on crate feature
client
only.ParseIntError(ParseIntError)
ParseFloatError(ParseFloatError)
Reqwest(Error)
Available on crate feature
client
only.SearchHasBboxAndIntersects(Box<Search>)
A search has both bbox and intersects.
SerdeJson(Error)
SerdeUrlencodedSer(Error)
Stac(Error)
StartIsAfterEnd(DateTime<FixedOffset>, DateTime<FixedOffset>)
The start time is after the end time.
TryFromInt(TryFromIntError)
UrlParse(ParseError)
Unimplemented(&'static str)
This functionality is not yet implemented.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<InvalidHeaderName> for Error
impl From<InvalidHeaderName> for Error
Source§fn from(source: InvalidHeaderName) -> Self
fn from(source: InvalidHeaderName) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<InvalidMethod> for Error
impl From<InvalidMethod> for Error
Source§fn from(source: InvalidMethod) -> Self
fn from(source: InvalidMethod) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
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>
Converts
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>
Converts
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