Struct coap_client::Client [−][src]
pub struct Client<E, T: Backend<E>> { /* fields omitted */ }Expand description
Async CoAP client, generic over Backend implementations
Implementations
pub async fn connect<H>(host: H, opts: &ClientOptions) -> Result<Self, Error> where
H: TryInto<HostOptions>,
<H as TryInto<HostOptions>>::Error: Debug,
pub async fn connect<H>(host: H, opts: &ClientOptions) -> Result<Self, Error> where
H: TryInto<HostOptions>,
<H as TryInto<HostOptions>>::Error: Debug,
Create a new client with the provided host and client options
Perform a basic CoAP request
Observe the provided resource
Deregister an observation
Perform a Get request from the provided resource
Perform a Put request to the provided resource