pub trait FfiFuture {
    // Required method
    fn dyn_poll(self: Pin<&mut Self>, ctx: &mut Context<'_>) -> PollFuture;
}
Available on crate features dyn-traits and futures only.
Expand description

Models a Future resolving to ().

Required Methods§

source

fn dyn_poll(self: Pin<&mut Self>, ctx: &mut Context<'_>) -> PollFuture

Trait Implementations§

source§

impl<'__usability> ReprCTrait for dyn FfiFuture + '__usability

§

type VTable = FfiFutureVTable<'__usability>

source§

unsafe fn drop_ptr(ptr: NonNullOwned<ErasedTy>, _: &Self::VTable)

source§

impl<'__usability, __impl_FfiFuture: '__usability + FfiFuture> VirtualPtrFrom<Pin<&'__usability mut __impl_FfiFuture>> for dyn FfiFuture + '__usability

source§

impl<'__usability, __impl_FfiFuture: '__usability + FfiFuture> VirtualPtrFrom<Pin<Box<__impl_FfiFuture, Global>>> for dyn FfiFuture + '__usability

source§

fn into_virtual_ptr( this: Pin<Box<__impl_FfiFuture>> ) -> VirtualPtr<dyn FfiFuture + '__usability>

Implementors§

source§

impl<'__usability> FfiFuture for VirtualPtr<dyn Send + Sync + FfiFuture + '__usability>

source§

impl<'__usability> FfiFuture for VirtualPtr<dyn Send + FfiFuture + '__usability>

source§

impl<'__usability> FfiFuture for VirtualPtr<dyn FfiFuture + '__usability>

source§

impl<F: Future<Output = ()>> FfiFuture for F