Type Definition coap_client::TokioClient[][src]

type TokioClient = Client<Tokio>;

Implementations

impl TokioClient[src]

pub async fn connect<H>(host: H, opts: &ClientOptions) -> Result<Self, Error> where
    H: TryInto<HostOptions>,
    <H as TryInto<HostOptions>>::Error: Debug
[src]

Create a new client with the provided host and client options

pub async fn close(self) -> Result<(), Error>[src]

Close the provided client, ending all existing sessions