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>)
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)
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)
AddToPath(String)
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§
impl Freeze for InstallCommand
impl RefUnwindSafe for InstallCommand
impl Send for InstallCommand
impl Sync for InstallCommand
impl Unpin for InstallCommand
impl UnwindSafe for InstallCommand
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