Trait uniffi_bindgen::BindingsConfig
source · pub trait BindingsConfig: DeserializeOwned {
// Required methods
fn update_from_ci(&mut self, ci: &ComponentInterface);
fn update_from_cdylib_name(&mut self, cdylib_name: &str);
fn update_from_dependency_configs(
&mut self,
config_map: HashMap<&str, &Self>
);
}
Expand description
Trait for bindings configuration. Each bindings language defines one of these.
BindingsConfigs are initially loaded from uniffi.toml
file. Then the trait methods are used
to fill in missing values.
Required Methods§
sourcefn update_from_ci(&mut self, ci: &ComponentInterface)
fn update_from_ci(&mut self, ci: &ComponentInterface)
Update missing values using the ComponentInterface
sourcefn update_from_cdylib_name(&mut self, cdylib_name: &str)
fn update_from_cdylib_name(&mut self, cdylib_name: &str)
Update missing values using the dylib file for the main crate, when in library mode.
cdylib_name will be the library filename without the leading lib
and trailing extension
sourcefn update_from_dependency_configs(&mut self, config_map: HashMap<&str, &Self>)
fn update_from_dependency_configs(&mut self, config_map: HashMap<&str, &Self>)
Update missing values from config instances from dependent crates
config_map maps crate names to config instances. This is mostly used to set up external types.