[−][src]Trait kernel::hil::kv_system::Client
Implement this trait and use set_client()
in order to receive callbacks.
Required methods
pub fn generate_key_complete(
&'a self,
result: Result<(), ReturnCode>,
unhashed_key: &'static [u8],
key_buf: &'static K
)
[src]
&'a self,
result: Result<(), ReturnCode>,
unhashed_key: &'static [u8],
key_buf: &'static K
)
This callback is called when the append_key operation completes
result
: Nothing on success, 'ReturnCode' on error
unhashed_key
: The unhashed_key buffer
key_buf
: The key_buf buffer
pub fn append_key_complete(
&'a self,
result: Result<(), ReturnCode>,
key: &'static mut K,
value: &'static mut [u8]
)
[src]
&'a self,
result: Result<(), ReturnCode>,
key: &'static mut K,
value: &'static mut [u8]
)
This callback is called when the append_key operation completes
result
: Nothing on success, 'ReturnCode' on error
key
: The key buffer
value
: The value buffer
pub fn get_value_complete(
&'a self,
result: Result<(), ReturnCode>,
key: &'static mut K,
ret_buf: &'static mut [u8]
)
[src]
&'a self,
result: Result<(), ReturnCode>,
key: &'static mut K,
ret_buf: &'static mut [u8]
)
This callback is called when the get_value operation completes
result
: Nothing on success, 'ReturnCode' on error
key
: The key buffer
ret_buf
: The ret_buf buffer
pub fn invalidate_key_complete(
&'a self,
result: Result<(), ReturnCode>,
key: &'static mut K
)
[src]
&'a self,
result: Result<(), ReturnCode>,
key: &'static mut K
)
This callback is called when the invalidate_key operation completes
result
: Nothing on success, 'ReturnCode' on error
key
: The key buffer
pub fn garbage_collect_complete(
&'a self,
result: Result<(), ReturnCode>,
key: &'static mut K
)
[src]
&'a self,
result: Result<(), ReturnCode>,
key: &'static mut K
)
This callback is called when the garbage_collect operation completes
result
: Nothing on success, 'ReturnCode' on error