pub enum KVError {
Unknown,
NotFound,
UnAuthorized,
}
Expand description
Enums describing the errors that correspond to kv modules.
This is returned by methods similar to
crate::kv::set()
for
error scenarios.
Variants§
Unknown
An unknown error has ocurred while trying to perform a KV store operation.
NotFound
The value associated with the key could not be found.
UnAuthorized
This application is not authorized to access this key.
Trait Implementations§
source§impl Error for KVError
impl Error for KVError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()