Struct uniffi_bindgen::interface::Method
source · pub struct Method {Show 13 fields
pub(super) name: String,
pub(super) object_name: String,
pub(super) object_module_path: String,
pub(super) is_async: bool,
pub(super) object_impl: ObjectImpl,
pub(super) arguments: Vec<Argument>,
pub(super) return_type: Option<Type>,
pub(super) ffi_func: FfiFunction,
pub(super) docstring: Option<String>,
pub(super) throws: Option<Type>,
pub(super) takes_self_by_arc: bool,
pub(super) checksum_fn_name: String,
pub(super) checksum: Option<u16>,
}
Fields§
§name: String
§object_name: String
§object_module_path: String
§is_async: bool
§object_impl: ObjectImpl
§arguments: Vec<Argument>
§return_type: Option<Type>
§ffi_func: FfiFunction
§docstring: Option<String>
§throws: Option<Type>
§takes_self_by_arc: bool
§checksum_fn_name: String
§checksum: Option<u16>
Implementations§
source§impl Method
impl Method
pub fn name(&self) -> &str
pub fn is_async(&self) -> bool
pub fn arguments(&self) -> Vec<&Argument>
pub fn full_arguments(&self) -> Vec<Argument>
pub fn return_type(&self) -> Option<&Type>
pub fn ffi_func(&self) -> &FfiFunction
pub fn checksum_fn_name(&self) -> &str
pub fn checksum(&self) -> u16
pub fn throws(&self) -> bool
pub fn throws_name(&self) -> Option<&str>
pub fn throws_type(&self) -> Option<&Type>
pub fn docstring(&self) -> Option<&str>
pub fn takes_self_by_arc(&self) -> bool
pub fn derive_ffi_func(&mut self) -> Result<()>
pub fn iter_types(&self) -> TypeIterator<'_>
sourcepub fn foreign_future_ffi_result_struct(&self) -> FfiStruct
pub fn foreign_future_ffi_result_struct(&self) -> FfiStruct
For async callback interface methods, the FFI struct to pass to the completion function.
Trait Implementations§
source§impl Callable for Method
impl Callable for Method
fn arguments(&self) -> Vec<&Argument>
fn return_type(&self) -> Option<Type>
fn throws_type(&self) -> Option<Type>
fn is_async(&self) -> bool
fn takes_self(&self) -> bool
fn result_type(&self) -> ResultType
fn ffi_rust_future_poll(&self, ci: &ComponentInterface) -> String
fn ffi_rust_future_cancel(&self, ci: &ComponentInterface) -> String
fn ffi_rust_future_complete(&self, ci: &ComponentInterface) -> String
fn ffi_rust_future_free(&self, ci: &ComponentInterface) -> String
Auto Trait Implementations§
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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