Trait coap_client::backend::Backend[][src]

pub trait Backend {
    type Error;
#[must_use]    fn request<'life0, 'async_trait>(
        &'life0 mut self,
        req: Packet,
        opts: RequestOptions
    ) -> Pin<Box<dyn Future<Output = Result<Packet, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Generic transport trait for implementing CoAP client backends

Associated Types

Loading content...

Required methods

#[must_use]fn request<'life0, 'async_trait>(
    &'life0 mut self,
    req: Packet,
    opts: RequestOptions
) -> Pin<Box<dyn Future<Output = Result<Packet, Self::Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl Backend for Tokio[src]

type Error = Error

Loading content...