pub enum KVGetError {
DeserializeValueError {
key: Key,
source: Error,
},
ValueExpectedButNotFound {
key: Key,
},
Ed25519DalekError {
key: Key,
source: SignatureError,
},
}
Expand description
Error when trying to read a value corresponding to a given key from the key value store. The error may arise in the following circumstances:
- The value corresponding to a given key cannot be deserialized into its expected type,
- The value corresponding to a given key cannot be found,
- There was an error when processing Ed25519Dalek keypairs or signatures.
Variants§
Trait Implementations§
source§impl Debug for KVGetError
impl Debug for KVGetError
source§impl From<KVGetError> for BlockTreeError
impl From<KVGetError> for BlockTreeError
source§fn from(value: KVGetError) -> Self
fn from(value: KVGetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KVGetError
impl !RefUnwindSafe for KVGetError
impl Send for KVGetError
impl Sync for KVGetError
impl Unpin for KVGetError
impl !UnwindSafe for KVGetError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more