Struct uniffi::ffi::ForeignFuture
#[repr(C)]pub struct ForeignFuture {
pub handle: u64,
pub free: extern "C" fn(_: u64),
}
Expand description
Perform a call to a foreign async method C struct that represents the foreign future.
This is what’s returned by the async scaffolding functions.
Fields§
§handle: u64
§free: extern "C" fn(_: u64)
Trait Implementations§
§impl FfiDefault for ForeignFuture
impl FfiDefault for ForeignFuture
fn ffi_default() -> ForeignFuture
impl Send for ForeignFuture
Auto Trait Implementations§
impl RefUnwindSafe for ForeignFuture
impl Sync for ForeignFuture
impl Unpin for ForeignFuture
impl UnwindSafe for ForeignFuture
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
impl<T, UT> HandleAlloc<UT> for Twhere T: Send + Sync,
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>