pub struct UpdateInstallOptions { /* private fields */ }Expand description
Installation overrides for a verified staged artifact.
Implementations§
Source§impl UpdateInstallOptions
impl UpdateInstallOptions
pub fn new() -> Self
Sourcepub fn target_executable(self, executable: impl Into<PathBuf>) -> Self
pub fn target_executable(self, executable: impl Into<PathBuf>) -> Self
Override the running executable used to locate the application bundle or replacement file.
Sourcepub fn retain_backup(self, retain: bool) -> Self
pub fn retain_backup(self, retain: bool) -> Self
Keep the previous bundle or executable beside the installed version for caller cleanup.
pub fn windows_mode(self, mode: WindowsUpdateInstallMode) -> Self
Sourcepub fn installer_arguments<I, S>(self, arguments: I) -> Self
pub fn installer_arguments<I, S>(self, arguments: I) -> Self
Append native installer arguments without invoking a shell.
pub fn executable_override(&self) -> Option<&Path>
pub const fn retains_backup(&self) -> bool
pub const fn windows_install_mode(&self) -> WindowsUpdateInstallMode
pub fn extra_installer_arguments(&self) -> &[OsString]
Trait Implementations§
Source§impl Clone for UpdateInstallOptions
impl Clone for UpdateInstallOptions
Source§fn clone(&self) -> UpdateInstallOptions
fn clone(&self) -> UpdateInstallOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateInstallOptions
impl Debug for UpdateInstallOptions
Source§impl Default for UpdateInstallOptions
impl Default for UpdateInstallOptions
impl Eq for UpdateInstallOptions
Source§impl PartialEq for UpdateInstallOptions
impl PartialEq for UpdateInstallOptions
impl StructuralPartialEq for UpdateInstallOptions
Auto Trait Implementations§
impl Freeze for UpdateInstallOptions
impl RefUnwindSafe for UpdateInstallOptions
impl Send for UpdateInstallOptions
impl Sync for UpdateInstallOptions
impl Unpin for UpdateInstallOptions
impl UnsafeUnpin for UpdateInstallOptions
impl UnwindSafe for UpdateInstallOptions
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