pub struct BaseInterface<TInterpreter: SimpleInterpreter<TError::ErrorType>, TError: Error> { /* private fields */ }
Implementations§
Source§impl<TInterpreter: SimpleInterpreter<TError::ErrorType>, TError: Error> BaseInterface<TInterpreter, TError>
impl<TInterpreter: SimpleInterpreter<TError::ErrorType>, TError: Error> BaseInterface<TInterpreter, TError>
pub fn new(interpreter: TInterpreter) -> BaseInterface<TInterpreter, TError>
pub fn set_prop(&mut self, key: String, value: String)
pub fn set_static_info( &mut self, name: &'static str, version: &'static str, author: &'static str, )
pub fn get_components( &mut self, installer: &mut dyn Installer, resources: &HashMap<&'static str, &'static [u8]>, ) -> Result<Vec<Component>, TError::ErrorType>
pub fn run_post_uninstall( &mut self, post: &mut dyn PostUninstall, install_dir: &Path, ) -> Result<(), TError::ErrorType>
pub fn run_post_install( &mut self, post: &mut dyn PostInstall, install_dir: &Path, ) -> Result<(), TError::ErrorType>
pub fn get_target_dirs(&self, install_dir: &Path) -> (PathBuf, PathBuf)
pub fn get_installation_state( &mut self, components: Vec<Component>, installer: &mut dyn Installer, install_dir: &Path, ) -> Result<Option<InstallationState>, TError::ErrorType>
pub fn install_component( &mut self, component: &Component, installer: &mut dyn Installer, install_dir: &Path, method: InstallMethod, resources: &HashMap<&'static str, &'static [u8]>, ) -> Result<(), TError::ErrorType>
pub fn uninstall_component( &mut self, component: &Component, installer: &mut dyn Installer, install_dir: &Path, method: InstallMethod, ) -> Result<(), TError::ErrorType>
Auto Trait Implementations§
impl<TInterpreter, TError> Freeze for BaseInterface<TInterpreter, TError>where
TInterpreter: Freeze,
impl<TInterpreter, TError> RefUnwindSafe for BaseInterface<TInterpreter, TError>where
TInterpreter: RefUnwindSafe,
TError: RefUnwindSafe,
impl<TInterpreter, TError> Send for BaseInterface<TInterpreter, TError>
impl<TInterpreter, TError> Sync for BaseInterface<TInterpreter, TError>
impl<TInterpreter, TError> Unpin for BaseInterface<TInterpreter, TError>
impl<TInterpreter, TError> UnwindSafe for BaseInterface<TInterpreter, TError>where
TInterpreter: UnwindSafe,
TError: UnwindSafe,
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