pub type nanocoap_cache_update_strategy_t = Option<unsafe extern "C" fn(node: *mut clist_node_t) -> c_int>;
Expand description

@brief Typedef for the cache update strategy on element access.

@param[in] node The accessed node.

@return 0 on successfully updating the element @return -1 on error

Aliased Type§

enum nanocoap_cache_update_strategy_t {
    None,
    Some(unsafe extern "C" fn(_: *mut list_node) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut list_node) -> i32)

Some value of type T.