pub enum KeyValueResult {
Ok {
response: KeyValueResponse,
},
Err {
error: KeyValueError,
},
}
Expand description
The result of an operation on the store.
Note: we can’t use Result
and Option
here because generics are not currently
supported across the FFI boundary, when using the builtin typegen.
Variants§
Trait Implementations§
Source§impl Clone for KeyValueResult
impl Clone for KeyValueResult
Source§fn clone(&self) -> KeyValueResult
fn clone(&self) -> KeyValueResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KeyValueResult
impl Debug for KeyValueResult
Source§impl<'de> Deserialize<'de> for KeyValueResult
impl<'de> Deserialize<'de> for KeyValueResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KeyValueResult
impl PartialEq for KeyValueResult
Source§impl Serialize for KeyValueResult
impl Serialize for KeyValueResult
impl Eq for KeyValueResult
impl StructuralPartialEq for KeyValueResult
Auto Trait Implementations§
impl Freeze for KeyValueResult
impl RefUnwindSafe for KeyValueResult
impl Send for KeyValueResult
impl Sync for KeyValueResult
impl Unpin for KeyValueResult
impl UnwindSafe for KeyValueResult
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