Struct coap::server::CoAPServer
[−]
[src]
pub struct CoAPServer { /* fields omitted */ }
Methods
impl CoAPServer
[src]
fn new<A: ToSocketAddrs>(addr: A) -> Result<CoAPServer>
Creates a CoAP server listening on the given address.
fn handle<H: CoAPHandler + 'static>(
&mut self,
handler: H
) -> Result<(), CoAPServerError>
&mut self,
handler: H
) -> Result<(), CoAPServerError>
Starts handling requests with the handler
fn stop(&mut self)
Stop the server.