Trait async_ffi::FutureExt[][src]

pub trait FutureExt: Future + Sized {
    fn into_ffi<'a>(self) -> BorrowingFfiFuture<'a, Self::Output>
Notable traits for BorrowingFfiFuture<'_, T>
impl<T> Future for BorrowingFfiFuture<'_, T> type Output = T;

    where
        Self: Send + 'a
, { ... }
fn into_local_ffi<'a>(self) -> LocalBorrowingFfiFuture<'a, Self::Output>
Notable traits for LocalBorrowingFfiFuture<'_, T>
impl<T> Future for LocalBorrowingFfiFuture<'_, T> type Output = T;

    where
        Self: 'a
, { ... } }
Expand description

Helper trait to provide conversion from Future to FfiFuture or LocalFfiFuture.

See module level documentation for more details.

Provided methods

Convert a Rust Future implementing Send into a FFI-compatible FfiFuture.

Convert a Rust Future into a FFI-compatible LocalFfiFuture.

Implementors