pub trait FutureExt: Future + Sized {
// Provided methods
fn into_ffi<'a>(self) -> BorrowingFfiFuture<'a, Self::Output> ⓘ
where Self: Send + 'a { ... }
fn into_local_ffi<'a>(self) -> LocalBorrowingFfiFuture<'a, Self::Output> ⓘ
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§
sourcefn into_local_ffi<'a>(self) -> LocalBorrowingFfiFuture<'a, Self::Output> ⓘwhere
Self: 'a,
fn into_local_ffi<'a>(self) -> LocalBorrowingFfiFuture<'a, Self::Output> ⓘwhere Self: 'a,
Convert a Rust Future
into a FFI-compatible LocalFfiFuture
.