Struct uniffi_bindgen::interface::Constructor
source · pub struct Constructor {
pub(super) name: String,
pub(super) object_name: String,
pub(super) object_module_path: String,
pub(super) is_async: bool,
pub(super) arguments: Vec<Argument>,
pub(super) ffi_func: FfiFunction,
pub(super) docstring: Option<String>,
pub(super) throws: Option<Type>,
pub(super) checksum_fn_name: String,
pub(super) checksum: Option<u16>,
}
Fields§
§name: String
§object_name: String
§object_module_path: String
§is_async: bool
§arguments: Vec<Argument>
§ffi_func: FfiFunction
§docstring: Option<String>
§throws: Option<Type>
§checksum_fn_name: String
§checksum: Option<u16>
Implementations§
source§impl Constructor
impl Constructor
pub fn name(&self) -> &str
pub fn arguments(&self) -> Vec<&Argument>
pub fn full_arguments(&self) -> Vec<Argument>
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 is_primary_constructor(&self) -> bool
fn derive_ffi_func(&mut self)
pub fn iter_types(&self) -> TypeIterator<'_>
Trait Implementations§
source§impl Callable for Constructor
impl Callable for Constructor
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
source§impl Clone for Constructor
impl Clone for Constructor
source§fn clone(&self) -> Constructor
fn clone(&self) -> Constructor
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 Constructor
impl Debug for Constructor
Auto Trait Implementations§
impl RefUnwindSafe for Constructor
impl Send for Constructor
impl Sync for Constructor
impl Unpin for Constructor
impl UnwindSafe for Constructor
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