Enum icu_provider::DataError [−][src]
#[non_exhaustive] pub enum DataError { UnsupportedCategory(ResourceCategory), UnsupportedResourceKey(ResourceKey), UnavailableResourceOptions(DataRequest), NeedsLanguageIdentifier(DataRequest), NeedsTypeInfo, MissingPayload, MismatchedType { actual: Option<TypeId>, generic: Option<TypeId>, }, Resource(Box<dyn Error>), }
Variants (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.
UnsupportedCategory(ResourceCategory)
The data provider does not support the requested category.
UnsupportedResourceKey(ResourceKey)
The data provider supports the category, but not the key (sub-category or version).
The data provider supports the key, but does not have data for the specific entry.
NeedsLanguageIdentifier(DataRequest)
The data provider supports the key, but it requires a language identifier, which was missing from the request.
The operation cannot be completed without more type information. For example, data cannot be deserialized without the concrete type.
The payload is missing. This error is usually unexpected.
The TypeID of the payload does not match the expected TypeID.
Show fields
The data provider encountered some other error when loading the resource, such as I/O.
Implementations
impl Error
[src]
impl Error
[src]pub fn new_resc_error<T>(err: T) -> Self where
T: 'static + Error,
[src]
T: 'static + Error,
Trait Implementations
impl From<&'_ ResourceCategory> for Error
[src]
impl From<&'_ ResourceCategory> for Error
[src]fn from(category: &ResourceCategory) -> Self
[src]
impl From<&'_ ResourceKey> for Error
[src]
impl From<&'_ ResourceKey> for Error
[src]fn from(resc_key: &ResourceKey) -> Self
[src]
impl From<DataRequest> for Error
[src]
impl From<DataRequest> for Error
[src]fn from(req: DataRequest) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl !UnwindSafe for Error