pub trait Callback: Send {
// Required method
fn called(&self, cmd: Command, snip: Pktsnip<Shared>);
}
Available on
riot_module_gnrc_netapi_callbacks
only.Expand description
Callback trait for registration with netreg.
This is expressed as a trait rather than a FnMut because the callback generally needs to be statically allocated, and a closure (which can not be named) can not.