Trait install_framework_core::interface::Interface [−][src]
Represents an interface
Associated Types
Loading content...Required methods
fn welcome(
&mut self,
installer_name: &'static str,
installer_version: &'static str,
installer_author: &'static str
) -> Result<(), Self::ErrorType>
[src]
&mut self,
installer_name: &'static str,
installer_version: &'static str,
installer_author: &'static str
) -> Result<(), Self::ErrorType>
Opens the welcome page for this interface
Arguments
installer_name
- the name of this installerinstaller_version
- the version of this installerinstaller_author
- the author or company name of this installer
fn get_install_method(&mut self) -> Result<InstallMethod, Self::ErrorType>
[src]
Returns the install method the user chose (only called if the installer supports both modes to decide which mode should be used to continue)
Returns
an InstallMethod
fn should_uninstall(&self) -> Result<bool, Self::ErrorType>
[src]
Returns wether the user chose the uninstall option or the install option
fn run_install(
&mut self,
install: &mut dyn Installer,
install_dir: &Path,
method: InstallMethod,
resources: &HashMap<&'static str, &'static [u8]>
) -> Result<(), Self::ErrorType>
[src]
&mut self,
install: &mut dyn Installer,
install_dir: &Path,
method: InstallMethod,
resources: &HashMap<&'static str, &'static [u8]>
) -> Result<(), Self::ErrorType>
Runs the install procedure for this interface
Arguments
install
- the installer traitinstall_dir
- the computed installation directorymethod
- the installation methodresources
- the resources map built by InstallerBuilder
fn run_post_install(
&mut self,
post_install: &mut dyn PostInstall,
install_dir: &Path
) -> Result<(), Self::ErrorType>
[src]
&mut self,
post_install: &mut dyn PostInstall,
install_dir: &Path
) -> Result<(), Self::ErrorType>
Runs the post-install procedure for this interface
Arguments
post_install
- the custom PostInstall stepinstall_dir
- the computed installation directory
fn run_uninstall(
&mut self,
install: &mut dyn Installer,
install_dir: &Path,
method: InstallMethod,
resources: &HashMap<&'static str, &'static [u8]>
) -> Result<(), Self::ErrorType>
[src]
&mut self,
install: &mut dyn Installer,
install_dir: &Path,
method: InstallMethod,
resources: &HashMap<&'static str, &'static [u8]>
) -> Result<(), Self::ErrorType>
Runs the uninstall procedure for this interface
Arguments
install
- the installer traitinstall_dir
- the computed installation directorymethod
- the installation methodresources
- the resources map built by InstallerBuilder
fn run_post_uninstall(
&mut self,
post_uninstall: &mut dyn PostUninstall,
install_dir: &Path
) -> Result<(), Self::ErrorType>
[src]
&mut self,
post_uninstall: &mut dyn PostUninstall,
install_dir: &Path
) -> Result<(), Self::ErrorType>
Runs the post-uninstall procedure for this interface
Arguments
post_uninstall
- the custom PostUninstall stepinstall_dir
- the computed installation directory
fn error(&mut self, err: Self::ErrorType) -> i32
[src]
Called when an error has occured
Arguments
err
- the error object
Returns
expected program exit code for the given error object