Struct install_framework_core::builder::InstallerBuilder[][src]

pub struct InstallerBuilder<'a> { /* fields omitted */ }

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]

Sets the global installer name

Arguments

  • version - The version of this installer as a static string

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]

Sets the global installer author

Arguments

  • author - The author of this installer as a static string

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 script
  • bytes - resource binary data (use include_bytes!)

pub fn add_post_install_step(self, obj: &'a mut dyn PostInstall) -> Self[src]

Add a PostInstall step to this installer

Arguments

  • obj - reference to the PostInstall trait

pub fn add_post_uninstall_step(self, obj: &'a mut dyn PostUninstall) -> Self[src]

Add a PostUninstall step to this installer

Arguments

  • obj - reference to the PostUninstall trait

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.