Enum InstallCommand

Source
pub enum InstallCommand {
    DownloadFile(String, String, HashMap<String, String>),
    UnpackCached(String),
    ExtractResource(&'static str),
    UserInput(String, String),
    InstallResource(&'static str, usize),
    CreateFolder(String),
    AddToPath(String),
    InstallCached(String, usize),
    AddShortcut(String),
}

Variants§

§

DownloadFile(String, String, HashMap<String, String>)

Instructs to download a file into cache

§Arguments
  • filename,
  • url,
  • headers
§

UnpackCached(String)

Instructs to unpack an archive file from cache

§Arguments
  • path in cache (use %res:% to mension a file contained in a subfolder in the cache)
§

ExtractResource(&'static str)

Instructs to extract a file contained in this installer’s resources to the cache

§Arguments
  • resource name/path
§

UserInput(String, String)

Instructs to ask the user for input

§Arguments
  • property name
  • input message
§

InstallResource(&'static str, usize)

Instructs to install a file contained in this installer’s resources

§Arguments
  • resource name/path,
  • target folder resource id (0 = main content directory)
§

CreateFolder(String)

Instructs to create a folder

§Arguments
  • folder name
§

AddToPath(String)

Instructs to add a binary file to the PATH

§Arguments
  • path to file relative to content directory
§

InstallCached(String, usize)

Instructs to install a file or folder from cache

§Arguments
  • path in cache (use %res:% to mension a file contained in a subfolder in the cache),
  • target folder resource id (0 = main content directory)
§

AddShortcut(String)

Instructs to create a shortcut to run a GUI application

§Arguments
  • path to file relative to content directory

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.