Trait zenoh_core::AsyncResolve

source ·
pub trait AsyncResolve: Resolvable {
    type Future: Future<Output = Self::To> + Send;

    // Required method
    fn res_async(self) -> Self::Future;

    // Provided method
    fn res(self) -> Self::Future
       where Self: Sized { ... }
}
👎Deprecated since 1.0.0: use .await directly instead

Required Associated Types§

source

type Future: Future<Output = Self::To> + Send

👎Deprecated since 1.0.0: use .await directly instead

Required Methods§

source

fn res_async(self) -> Self::Future

👎Deprecated since 1.0.0: use .await directly instead

Provided Methods§

source

fn res(self) -> Self::Future
where Self: Sized,

👎Deprecated since 1.0.0: use .wait() instead`

Implementors§

source§

impl<T> AsyncResolve for T
where T: Resolvable + IntoFuture<Output = Self::To>, T::IntoFuture: Send,