macro_rules! resource_handler {
($f:ident, $t:path) => { ... };
}
Expand description
Create a CoapRequestHandler using the provided function.
This macro cannot be used if the intended handler function does not have a ’static lifetime, i.e. if the handler function is a closure. In these cases, use CoapRequestHandler::new() instead.