pub struct CliInterface { /* private fields */ }
Trait Implementations§
Source§impl ConstructibleInterface<'_> for CliInterface
impl ConstructibleInterface<'_> for CliInterface
Source§impl Interface for CliInterface
impl Interface for CliInterface
type ErrorType = CliError
Source§fn welcome(
&mut self,
name: &'static str,
version: &'static str,
author: &'static str,
) -> Result<(), Self::ErrorType>
fn welcome( &mut self, name: &'static str, version: &'static str, author: &'static str, ) -> Result<(), Self::ErrorType>
Opens the welcome page for this interface Read more
Source§fn get_install_method(&mut self) -> Result<InstallMethod, Self::ErrorType>
fn get_install_method(&mut self) -> Result<InstallMethod, Self::ErrorType>
Returns the install method the user chose (only called if the installer supports both modes to decide which mode should be used to continue) Read more
Source§fn should_uninstall(&self) -> Result<bool, Self::ErrorType>
fn should_uninstall(&self) -> Result<bool, Self::ErrorType>
Returns wether the user chose the uninstall option or the install option
Source§fn run_install(
&mut self,
installer: &mut dyn Installer,
dir: &Path,
method: InstallMethod,
resources: &HashMap<&'static str, &'static [u8]>,
) -> Result<(), Self::ErrorType>
fn run_install( &mut self, installer: &mut dyn Installer, dir: &Path, method: InstallMethod, resources: &HashMap<&'static str, &'static [u8]>, ) -> Result<(), Self::ErrorType>
Runs the install procedure for this interface Read more
Source§fn run_post_install(
&mut self,
post: &mut dyn PostInstall,
dir: &Path,
) -> Result<(), Self::ErrorType>
fn run_post_install( &mut self, post: &mut dyn PostInstall, dir: &Path, ) -> Result<(), Self::ErrorType>
Runs the post-install procedure for this interface Read more
Source§fn run_uninstall(
&mut self,
installer: &mut dyn Installer,
dir: &Path,
method: InstallMethod,
resources: &HashMap<&'static str, &'static [u8]>,
) -> Result<(), Self::ErrorType>
fn run_uninstall( &mut self, installer: &mut dyn Installer, dir: &Path, method: InstallMethod, resources: &HashMap<&'static str, &'static [u8]>, ) -> Result<(), Self::ErrorType>
Runs the uninstall procedure for this interface Read more
Source§fn run_post_uninstall(
&mut self,
post: &mut dyn PostUninstall,
dir: &Path,
) -> Result<(), Self::ErrorType>
fn run_post_uninstall( &mut self, post: &mut dyn PostUninstall, dir: &Path, ) -> Result<(), Self::ErrorType>
Runs the post-uninstall procedure for this interface Read more
Auto Trait Implementations§
impl Freeze for CliInterface
impl !RefUnwindSafe for CliInterface
impl Send for CliInterface
impl Sync for CliInterface
impl Unpin for CliInterface
impl !UnwindSafe for CliInterface
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