Struct coap::client::CoAPClient

source ·
pub struct CoAPClient { /* private fields */ }

Implementations

Create a CoAP client with the specific source and peer address.

Create a CoAP client with the peer address.

Execute a get request

Execute a get request with the coap url and a specific timeout.

Observe a resource with the handler

Stop observing

👎Deprecated since 0.6.0: please use get_with_timeout instead

Execute a request with the coap url and a specific timeout. Default timeout is 5s.

👎Deprecated since 0.6.0: please use get instead

Execute a request with the coap url.

Execute a request.

Receive a response.

Set the receive timeout.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.