pub type nanocoap_cache_replacement_strategy_t = Option<unsafe extern "C" fn() -> c_int>;
Expand description

@brief Typedef for the cache replacement strategy on full cache list.

@return 0 on successfully replacing a cache element @return -1 on error

Aliased Type§

enum nanocoap_cache_replacement_strategy_t {
    None,
    Some(unsafe extern "C" fn() -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn() -> i32)

Some value of type T.