pub trait ListenerProvider {
// Required method
unsafe fn get_listener<'a>(&'a mut self) -> &'a mut gcoap_listener_t;
}
Available on
riot_module_gcoap
only.Required Methods§
Sourceunsafe fn get_listener<'a>(&'a mut self) -> &'a mut gcoap_listener_t
unsafe fn get_listener<'a>(&'a mut self) -> &'a mut gcoap_listener_t
Provide an exclusive reference to the underlying gcoap listener. The function is marked unsafe as the returned value contains raw pointers that will later be dereferenced, and returning arbitrary pointers would make RegistratinScope::register() pass bad data on to C.