Enum icu_provider::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.
MissingResourceOptions(DataRequest)
The data provider supports the key, but does not have data for the specific entry.
FilteredResource(DataRequest, String)
The resource was not returned due to a filter. The resource may or may not be available.
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.
Fields of MismatchedType
The requested operation failed to unwrap an Rc backing the data payload.
Serde(Error)
An error occured during serialization or deserialization.
Resource(String)
The data provider encountered some other error when loading the resource, such as I/O.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Clone this trait object reference, returning a boxed trait object.