pub struct ForeignCallbackInternals { /* private fields */ }
Expand description
Reexport items from other uniffi creates Struct to hold a foreign callback.
Implementations§
Source§impl ForeignCallbackInternals
impl ForeignCallbackInternals
pub const fn new() -> ForeignCallbackInternals
pub fn set_callback( &self, callback: unsafe extern "C" fn(_: u64, _: u32, _: *const u8, _: i32, _: *mut RustBuffer) -> i32, )
Sourcepub fn invoke_callback<R, UniFfiTag>(
&self,
handle: u64,
method: u32,
args: RustBuffer,
) -> Rwhere
R: LiftReturn<UniFfiTag>,
pub fn invoke_callback<R, UniFfiTag>(
&self,
handle: u64,
method: u32,
args: RustBuffer,
) -> Rwhere
R: LiftReturn<UniFfiTag>,
Invoke a callback interface method on the foreign side and return the result
Auto Trait Implementations§
impl !Freeze for ForeignCallbackInternals
impl RefUnwindSafe for ForeignCallbackInternals
impl Send for ForeignCallbackInternals
impl Sync for ForeignCallbackInternals
impl Unpin for ForeignCallbackInternals
impl UnwindSafe for ForeignCallbackInternals
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