pub enum WindowsUpdateInstallMode {
BasicUi,
Quiet,
Passive,
}
Expand description
Install modes for the Windows update.
Variants§
BasicUi
Specifies there’s a basic UI during the installation process, including a final dialog box at the end.
Quiet
The quiet mode means there’s no user interaction required. Requires admin privileges if the installer does.
Passive
Specifies unattended mode, which means the installation only shows a progress bar.
Implementations§
source§impl WindowsUpdateInstallMode
impl WindowsUpdateInstallMode
sourcepub fn msiexec_args(&self) -> &'static [&'static str]
pub fn msiexec_args(&self) -> &'static [&'static str]
Returns the associated msiexec.exe
arguments.
sourcepub fn nsis_args(&self) -> &'static [&'static str]
pub fn nsis_args(&self) -> &'static [&'static str]
Returns the associated nsis arguments.
WindowsUpdateInstallMode::Passive will return ["/P", "/R", "/NS"]
WindowsUpdateInstallMode::Quiet will return ["/S", "/R", "/NS"]
Trait Implementations§
source§impl Clone for WindowsUpdateInstallMode
impl Clone for WindowsUpdateInstallMode
source§fn clone(&self) -> WindowsUpdateInstallMode
fn clone(&self) -> WindowsUpdateInstallMode
Returns a copy of the value. Read more
1.0.0 · 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 WindowsUpdateInstallMode
impl Debug for WindowsUpdateInstallMode
source§impl Default for WindowsUpdateInstallMode
impl Default for WindowsUpdateInstallMode
source§impl<'de> Deserialize<'de> for WindowsUpdateInstallMode
impl<'de> Deserialize<'de> for WindowsUpdateInstallMode
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for WindowsUpdateInstallMode
impl Display for WindowsUpdateInstallMode
source§impl PartialEq for WindowsUpdateInstallMode
impl PartialEq for WindowsUpdateInstallMode
source§impl Serialize for WindowsUpdateInstallMode
impl Serialize for WindowsUpdateInstallMode
impl Eq for WindowsUpdateInstallMode
impl StructuralPartialEq for WindowsUpdateInstallMode
Auto Trait Implementations§
impl Freeze for WindowsUpdateInstallMode
impl RefUnwindSafe for WindowsUpdateInstallMode
impl Send for WindowsUpdateInstallMode
impl Sync for WindowsUpdateInstallMode
impl Unpin for WindowsUpdateInstallMode
impl UnwindSafe for WindowsUpdateInstallMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.