[][src]Trait kernel::hil::kv_system::Client

pub trait Client<'a, K: KeyType> {
    pub fn generate_key_complete(
        &'a self,
        result: Result<(), ReturnCode>,
        unhashed_key: &'static [u8],
        key_buf: &'static K
    );
pub fn append_key_complete(
        &'a self,
        result: Result<(), ReturnCode>,
        key: &'static mut K,
        value: &'static mut [u8]
    );
pub fn get_value_complete(
        &'a self,
        result: Result<(), ReturnCode>,
        key: &'static mut K,
        ret_buf: &'static mut [u8]
    );
pub fn invalidate_key_complete(
        &'a self,
        result: Result<(), ReturnCode>,
        key: &'static mut K
    );
pub fn garbage_collect_complete(
        &'a self,
        result: Result<(), ReturnCode>,
        key: &'static mut K
    ); }

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]

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]

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]

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]

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]

This callback is called when the garbage_collect operation completes

result: Nothing on success, 'ReturnCode' on error

Loading content...

Implementors

Loading content...