TokioClient

Type Alias TokioClient 

Source
pub type TokioClient = Client<Error, Tokio>;
Expand description

Tokio base CoAP client

Aliased Type§

pub struct TokioClient { /* private fields */ }

Implementations§

Source§

impl TokioClient

Source

pub async fn connect<H>(host: H, opts: &ClientOptions) -> Result<Self, Error>

Create a new client with the provided host and client options

Source

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

Close the provided client, ending all existing sessions