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§

source

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.

Implementors§

source§

impl<'a, H> ListenerProvider for SingleHandlerListener<'a, H>
where H: 'a + Handler,