Struct uniffi_bindgen::interface::callbacks::CallbackInterface
source · pub struct CallbackInterface {
pub(super) name: String,
pub(super) module_path: String,
pub(super) methods: Vec<Method>,
pub(super) ffi_init_callback: FfiFunction,
pub(super) docstring: Option<String>,
}
Fields§
§name: String
§module_path: String
§methods: Vec<Method>
§ffi_init_callback: FfiFunction
§docstring: Option<String>
Implementations§
source§impl CallbackInterface
impl CallbackInterface
pub fn name(&self) -> &str
pub fn methods(&self) -> Vec<&Method>
pub fn ffi_init_callback(&self) -> &FfiFunction
pub(super) fn derive_ffi_funcs(&mut self)
sourcepub fn ffi_callbacks(&self) -> Vec<FfiCallbackFunction>
pub fn ffi_callbacks(&self) -> Vec<FfiCallbackFunction>
FfiCallbacks to define for our methods.
sourcepub fn vtable_definition(&self) -> FfiStruct
pub fn vtable_definition(&self) -> FfiStruct
the VTable struct to define.
sourcepub fn vtable_methods(&self) -> Vec<(FfiCallbackFunction, &Method)>
pub fn vtable_methods(&self) -> Vec<(FfiCallbackFunction, &Method)>
Vec of (ffi_callback, method) pairs
pub fn iter_types(&self) -> TypeIterator<'_>
pub fn docstring(&self) -> Option<&str>
pub fn has_async_method(&self) -> bool
Trait Implementations§
source§impl Clone for CallbackInterface
impl Clone for CallbackInterface
source§fn clone(&self) -> CallbackInterface
fn clone(&self) -> CallbackInterface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CallbackInterface
impl Debug for CallbackInterface
Auto Trait Implementations§
impl RefUnwindSafe for CallbackInterface
impl Send for CallbackInterface
impl Sync for CallbackInterface
impl Unpin for CallbackInterface
impl UnwindSafe for CallbackInterface
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