pub type LocalFfiFuture<T> = LocalBorrowingFfiFuture<'static, T>;
Expand description
The FFI compatible future type without Send
bound but with 'static
lifetime.
See module level documentation for more details.
Aliased Type§
struct LocalFfiFuture<T> { /* private fields */ }
Implementations
Source§impl<'a, T> LocalBorrowingFfiFuture<'a, T>
impl<'a, T> LocalBorrowingFfiFuture<'a, T>
Sourcepub fn new<F: Future<Output = T> + 'a>(fut: F) -> Self
pub fn new<F: Future<Output = T> + 'a>(fut: F) -> Self
Convert an std::future::Future
into a FFI-compatible LocalFfiFuture
.
Usually FutureExt::into_local_ffi
is preferred and is identical to this method.
Trait Implementations
Source§impl<T> Drop for LocalBorrowingFfiFuture<'_, T>
impl<T> Drop for LocalBorrowingFfiFuture<'_, T>
Source§impl<T> Future for LocalBorrowingFfiFuture<'_, T>
impl<T> Future for LocalBorrowingFfiFuture<'_, T>
Source§impl<'a, T> GetStaticEquivalent_ for LocalBorrowingFfiFuture<'a, T>where
T: __StableAbi,
impl<'a, T> GetStaticEquivalent_ for LocalBorrowingFfiFuture<'a, T>where
T: __StableAbi,
Source§type StaticEquivalent = _static_LocalBorrowingFfiFuture<'static, <T as GetStaticEquivalent_>::StaticEquivalent>
type StaticEquivalent = _static_LocalBorrowingFfiFuture<'static, <T as GetStaticEquivalent_>::StaticEquivalent>
The
'static
equivalent of Self
Source§impl<'a, T> StableAbi for LocalBorrowingFfiFuture<'a, T>where
T: __StableAbi,
impl<'a, T> StableAbi for LocalBorrowingFfiFuture<'a, T>where
T: __StableAbi,
Source§const LAYOUT: &'static TypeLayout = _
const LAYOUT: &'static TypeLayout = _
The layout of the type provided by implementors.
Source§type IsNonZeroType = False
type IsNonZeroType = False
Whether this type has a single invalid bit-pattern. Read more
Source§const ABI_CONSTS: AbiConsts = _
const ABI_CONSTS: AbiConsts = _
const
-equivalents of the associated types.