Type Alias riot_sys::ble_store_write_fn

source ·
pub type ble_store_write_fn = Option<unsafe extern "C" fn(obj_type: c_int, val: *const ble_store_value) -> c_int>;
Expand description

Writes the specified object to the store. If an object with the same identity is already in the store, it is replaced. If the store lacks sufficient capacity to write the object, this function may remove previously stored values to make room.

@param obj_type The type of object being written; one of the BLE_STORE_OBJ_TYPE_[…] codes. @param val The object to persist.

@return 0 if the object was successfully written; Other nonzero on error.

Aliased Type§

enum ble_store_write_fn {
    None,
    Some(unsafe extern "C" fn(_: i32, _: *const ble_store_value) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: i32, _: *const ble_store_value) -> i32)

Some value of type T.