//! libcoap-rs can be linked to either an included version of libcoap or to a version provided by
//! libcoap requires a DTLS library to be selected for DTLS functionality. By default, libcoap-rs
//! libraries (GnuTLS, MbedTLS, tinydtls), disable the `dtls_openssl` feature and replace it with
//! This example runs a simple CoAP client which makes a request to `coap://[::1]:5683/hello_world`
//! let mut request = CoapRequest::new(CoapMessageType::Con, CoapRequestCode::Get, uri).unwrap();
//! context.add_endpoint_udp("[::1]:5683".parse().unwrap()).expect("Unable to add/bind to endpoint");
//! |completed: &mut (), session: &mut CoapServerSession, request: &CoapRequest, mut response: CoapResponse| {