Skip to main content

PostInstall

Trait PostInstall 

Source
pub trait PostInstall: Send {
    // Required method
    fn post_install(&mut self, cache: &Path, content_dir: &Path, bin_dir: &Path);
}
Expand description

Represents a custom post install step

Required Methods§

Source

fn post_install(&mut self, cache: &Path, content_dir: &Path, bin_dir: &Path)

Called after all installations have been performed (only if a PostInstall has been defined in InstallerBuilder)

§Arguments
  • cache - access to the cache path
  • content_dir - access to the content directory of the installed application
  • bin_dir - access to the binary directory (directory which is present in PATH when one or more AddToPath rules are present)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§