Enum icu_provider::prelude::DataError [−][src]
#[non_exhaustive]
pub enum DataError {
MissingResourceKey(ResourceKey),
MissingResourceOptions(DataRequest),
FilteredResource(DataRequest, String),
NeedsLanguageIdentifier(DataRequest),
NeedsTypeInfo,
MissingPayload,
MismatchedType {
actual: Option<TypeId>,
generic: Option<TypeId>,
},
MultipleReferences,
Serde(Error),
Resource(String),
}
Expand description
Error enumeration for DataProvider.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
MissingResourceKey(ResourceKey)
The data provider does not support the resource key.
Tuple Fields of MissingResourceKey
0: ResourceKey
MissingResourceOptions(DataRequest)
The data provider supports the key, but does not have data for the specific entry.
Tuple Fields of MissingResourceOptions
0: DataRequest
FilteredResource(DataRequest, String)
The resource was not returned due to a filter. The resource may or may not be available.
Tuple Fields of FilteredResource
0: DataRequest
1: String
NeedsLanguageIdentifier(DataRequest)
The data provider supports the key, but it requires a language identifier, which was missing from the request.
Tuple Fields of NeedsLanguageIdentifier
0: DataRequest
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.
Fields of MismatchedType
The requested operation failed to unwrap an Rc backing the data payload.
Serde(Error)
An error occured during serialization or deserialization.
Tuple Fields of Serde
0: Error
Resource(String)
The data provider encountered some other error when loading the resource, such as I/O.
Tuple Fields of Resource
0: String
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.