pub trait StoreClient<K: KeyType> {
    fn get_complete(
        &self,
        result: Result<(), ErrorCode>,
        key: &'static mut [u8],
        ret_buf: &'static mut [u8]
    ); fn set_complete(
        &self,
        result: Result<(), ErrorCode>,
        key: &'static mut [u8],
        value: &'static mut [u8]
    ); fn delete_complete(
        &self,
        result: Result<(), ErrorCode>,
        key: &'static mut [u8]
    ); }
Expand description

Implement this trait and use set_client() in order to receive callbacks.

Required Methods

This callback is called when the get operation completes

result: Nothing on success, ‘ErrorCode’ on error key: The key buffer ret_buf: The ret_buf buffer

This callback is called when the set operation completes

result: Nothing on success, ‘ErrorCode’ on error key: The key buffer value: The value buffer

This callback is called when the delete operation completes

result: Nothing on success, ‘ErrorCode’ on error key: The key buffer

Implementors