pub struct InstallerBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> InstallerBuilder<'a>
impl<'a> InstallerBuilder<'a>
pub fn new(install: &'a mut dyn Installer) -> InstallerBuilder<'_>
Sourcepub fn set_name(self, name: &'static str) -> Self
pub fn set_name(self, name: &'static str) -> Self
Sets the global installer name
§Arguments
version
- The version of this installer as a static string
Sourcepub fn set_version(self, version: &'static str) -> Self
pub fn set_version(self, version: &'static str) -> Self
Sets the global installer version
§Arguments
version
- The version of this installer as a static string
Sets the global installer author
§Arguments
author
- The author of this installer as a static string
Sourcepub fn add_resource(self, path: &'static str, bytes: &'static [u8]) -> Self
pub fn add_resource(self, path: &'static str, bytes: &'static [u8]) -> Self
Add a resource
§Arguments
path
- path to use for referencing in the install scriptbytes
- resource binary data (use include_bytes!)
Sourcepub fn add_post_install_step(self, obj: &'a mut dyn PostInstall) -> Self
pub fn add_post_install_step(self, obj: &'a mut dyn PostInstall) -> Self
Sourcepub fn add_post_uninstall_step(self, obj: &'a mut dyn PostUninstall) -> Self
pub fn add_post_uninstall_step(self, obj: &'a mut dyn PostUninstall) -> Self
Sourcepub fn allow_user_install(self) -> Self
pub fn allow_user_install(self) -> Self
Allows user installs
Sourcepub fn allow_system_install(self) -> Self
pub fn allow_system_install(self) -> Self
Allows system wide installs
pub fn run<TInterface: Interface>(&mut self, interface: &mut TInterface) -> i32
Auto Trait Implementations§
impl<'a> Freeze for InstallerBuilder<'a>
impl<'a> !RefUnwindSafe for InstallerBuilder<'a>
impl<'a> Send for InstallerBuilder<'a>
impl<'a> !Sync for InstallerBuilder<'a>
impl<'a> Unpin for InstallerBuilder<'a>
impl<'a> !UnwindSafe for InstallerBuilder<'a>
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