Enum icu_provider::prelude::DataErrorKind
source · [−]#[non_exhaustive]
pub enum DataErrorKind {
}
Expand description
A list specifying general categories of data provider error.
Errors may be caused either by a malformed request or by the data provider not being able to fulfill a well-formed request.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
MissingResourceKey
No data for the provided resource key.
MissingVariant
There is data for the key, but not for this particular variant.
MissingLocale
There is data for the key, but not for this particular locale.
MissingResourceOptions
There is data for the key, but not for this particular variant and/or locale.
NeedsVariant
The request should include a variant field.
NeedsLocale
The request should include a locale.
ExtraneousResourceOptions
The request should not contain a variant and/or locale.
FilteredResource
The resource was blocked by a filter. The resource may or may not be available.
MismatchedType(&'static str)
The generic type parameter does not match the TypeId. The expected type name is stored as context when this error is returned.
MissingPayload
The payload is missing. This is usually caused by a previous error.
Mutex
An error involving a lock or mutex occurred.
Check debug logs for potentially more information.
InvalidState
A data provider object was given to an operation in an invalid state.
Custom
An unspecified error occurred, such as a Serde error.
Check debug logs for potentially more information.
Io(ErrorKind)
An error occurred while accessing a system resource.
Implementations
Converts this DataErrorKind into a DataError.
If possible, you should attach context using a with_
function.
Creates a DataError with a resource key context.
Creates a DataError with a string context.
Creates a DataError with a type name context.
Creates a DataError with a request context.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DataErrorKind
impl Send for DataErrorKind
impl Sync for DataErrorKind
impl Unpin for DataErrorKind
impl UnwindSafe for DataErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
fn filterable(
self,
filter_name: &'static str
) -> RequestFilterDataProvider<Self, fn(_: &DataRequest) -> bool>
fn filterable(
self,
filter_name: &'static str
) -> RequestFilterDataProvider<Self, fn(_: &DataRequest) -> bool>
Creates a filterable data provider with the given name for debugging. Read more