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
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_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,
Notable traits for BorrowingFfiFuture<'_, T>
impl<T> Future for BorrowingFfiFuture<'_, T> type Output = T;
Convert a Rust Future
implementing Send
into a FFI-compatible FfiFuture
.
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,
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,
Notable traits for LocalBorrowingFfiFuture<'_, T>
impl<T> Future for LocalBorrowingFfiFuture<'_, T> type Output = T;
Convert a Rust Future
into a FFI-compatible LocalFfiFuture
.