Enum feattle_core::UpdateError [−][src]
pub enum UpdateError<PersistError: Error + Send + Sync + 'static> {
NeverReloaded,
UnknownKey(String),
Parsing(FromJsonError),
Persistence(PersistError),
}
Expand description
The error type returned by Feattles::update()
Variants
Cannot update because current values were never successfully loaded from the persist layer
UnknownKey(String)
The key is unknown
Tuple Fields of UnknownKey
0: String
Parsing(FromJsonError)
Failed to parse the value from JSON
Tuple Fields of Parsing
Failed to persist new state
Trait Implementations
impl<PersistError: Error + Send + Sync + 'static> From<FromJsonError> for UpdateError<PersistError>
impl<PersistError: Error + Send + Sync + 'static> From<FromJsonError> for UpdateError<PersistError>
Performs the conversion.