Struct install_framework_core::builder::InstallerBuilder [−][src]
Implementations
impl<'a> InstallerBuilder<'a>
[src]
pub fn new(install: &'a mut dyn Installer) -> InstallerBuilder<'_>
[src]
pub fn set_name(self, name: &'static str) -> Self
[src]
pub fn set_version(self, version: &'static str) -> Self
[src]
Sets the global installer version
Arguments
version
- The version of this installer as a static string
pub fn set_author(self, author: &'static str) -> Self
[src]
pub fn add_resource(self, path: &'static str, bytes: &'static [u8]) -> Self
[src]
Add a resource
Arguments
path
- path to use for referencing in the install scriptbytes
- resource binary data (use include_bytes!)
pub fn add_post_install_step(self, obj: &'a mut dyn PostInstall) -> Self
[src]
pub fn add_post_uninstall_step(self, obj: &'a mut dyn PostUninstall) -> Self
[src]
pub fn allow_user_install(self) -> Self
[src]
Allows user installs
pub fn allow_system_install(self) -> Self
[src]
Allows system wide installs
pub fn run<TInterface: Interface>(&mut self, interface: &mut TInterface) -> i32
[src]
Auto Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,