pub enum DataCatalogError {
Show 20 variants
UnknownCenter(String),
UnknownProductType(String),
UnsupportedProduct {
center: AnalysisCenter,
product_type: ProductType,
},
NoOpenMirror {
center: String,
product_type: String,
},
InvalidDate {
year: i32,
month: u8,
day: u8,
},
DateOutOfRange,
DateBeforeGpsEpoch(ProductDate),
InvalidGpsDayOfWeek(u8),
InvalidSample(String),
InvalidIssue(String),
MissingIssue {
center: AnalysisCenter,
},
UnexpectedIssue {
center: AnalysisCenter,
},
UnsupportedIssue {
center: AnalysisCenter,
issue: String,
},
InvalidDateTime {
hour: u8,
minute: u8,
second: u8,
},
NoUltraIssue,
NoAvailableUltraIssue,
InvalidStation(String),
InvalidCoordinate {
lat_deg_bits: u64,
lon_deg_bits: u64,
},
InvalidTileIndex {
lat_index: i32,
lon_index: i32,
},
InvalidTileId(String),
}Expand description
Error returned by the pure data-product catalog.
Variants§
UnknownCenter(String)
Unknown analysis-center code.
UnknownProductType(String)
Unknown product type code.
UnsupportedProduct
The center does not serve the requested product type.
NoOpenMirror
The product has no verified anonymous HTTP(S) mirror.
InvalidDate
Bad civil date.
DateOutOfRange
Date cannot be represented by this API.
DateBeforeGpsEpoch(ProductDate)
Date precedes the GPS week epoch.
InvalidGpsDayOfWeek(u8)
GPS day-of-week must be 0..=6.
InvalidSample(String)
Sampling token is not NNX with an upper-case unit.
InvalidIssue(String)
Issue time is malformed.
MissingIssue
The center requires an issue time.
Fields
center: AnalysisCenterAnalysis center.
UnexpectedIssue
The center does not use issue times.
Fields
center: AnalysisCenterAnalysis center.
UnsupportedIssue
Issue time is valid text but not published by this center.
InvalidDateTime
The target datetime was invalid.
NoUltraIssue
No ultra-rapid issue exists at or before the requested target.
NoAvailableUltraIssue
No available ultra-rapid issue exists at or before the requested target.
InvalidStation(String)
Station identifier is not a 9-character upper-case alphanumeric token.
InvalidCoordinate
Terrain lookup coordinate is non-finite or outside the reader range.
InvalidTileIndex
Terrain tile index is outside the valid one-degree cell range.
InvalidTileId(String)
Skadi tile identifier is malformed.
Trait Implementations§
Source§impl Clone for DataCatalogError
impl Clone for DataCatalogError
Source§fn clone(&self) -> DataCatalogError
fn clone(&self) -> DataCatalogError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DataCatalogError
impl Debug for DataCatalogError
Source§impl Display for DataCatalogError
impl Display for DataCatalogError
impl Eq for DataCatalogError
Source§impl Error for DataCatalogError
impl Error for DataCatalogError
1.30.0 · 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 PartialEq for DataCatalogError
impl PartialEq for DataCatalogError
Source§fn eq(&self, other: &DataCatalogError) -> bool
fn eq(&self, other: &DataCatalogError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DataCatalogError
Auto Trait Implementations§
impl Freeze for DataCatalogError
impl RefUnwindSafe for DataCatalogError
impl Send for DataCatalogError
impl Sync for DataCatalogError
impl Unpin for DataCatalogError
impl UnsafeUnpin for DataCatalogError
impl UnwindSafe for DataCatalogError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.