pub struct Tokio { /* private fields */ }
Expand description
Tokio backend for coap-client
Implementations§
Trait Implementations§
Source§impl Backend<Error> for Tokio
impl Backend<Error> for Tokio
type Observe = TokioObserve
fn request<'life0, 'async_trait>(
&'life0 mut self,
req: Packet,
opts: RequestOptions,
) -> Pin<Box<dyn Future<Output = Result<Packet, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn observe<'life0, 'async_trait>(
&'life0 mut self,
resource: String,
opts: RequestOptions,
) -> Pin<Box<dyn Future<Output = Result<Self::Observe, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn unobserve<'life0, 'async_trait>(
&'life0 mut self,
o: Self::Observe,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for Tokio
impl !RefUnwindSafe for Tokio
impl Send for Tokio
impl Sync for Tokio
impl Unpin for Tokio
impl !UnwindSafe for Tokio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more