Enum feattle::UpdateError [−][src]
pub enum UpdateError<PersistError> where
PersistError: 'static + Error + Send + Sync, {
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 for UpdateError<PersistError> where
PersistError: 'static + Error + Send + Sync,
UpdateError<PersistError>: Debug,
UpdateError<PersistError>: Display,
impl<PersistError> Error for UpdateError<PersistError> where
PersistError: 'static + Error + Send + Sync,
UpdateError<PersistError>: Debug,
UpdateError<PersistError>: Display,
impl<PersistError> From<FromJsonError> for UpdateError<PersistError> where
PersistError: 'static + Error + Send + Sync,
impl<PersistError> From<FromJsonError> for UpdateError<PersistError> where
PersistError: 'static + Error + Send + Sync,
Performs the conversion.
impl<PersistError> From<UpdateError<PersistError>> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
impl<PersistError> From<UpdateError<PersistError>> for RenderError<PersistError> where
PersistError: 'static + Error + Send + Sync,
Performs the conversion.