Enum tauri_utils::config::WebviewInstallMode
source · [−]pub enum WebviewInstallMode {
Skip,
DownloadBootstrapper {
silent: bool,
},
EmbedBootstrapper {
silent: bool,
},
OfflineInstaller {
silent: bool,
},
FixedRuntime {
path: PathBuf,
},
}
Expand description
Install modes for the Webview2 runtime.
Note that for the updater bundle Self::DownloadBootstrapper
is used.
For more information see https://tauri.app/v1/guides/building/windows.
Variants
Skip
Do not install the Webview2 as part of the Windows Installer.
DownloadBootstrapper
Fields
silent: bool
Instructs the installer to run the bootstrapper in silent mode. Defaults to true
.
Download the bootstrapper and run it. Requires internet connection. Results in a smaller installer size, but is not recommended on Windows 7.
EmbedBootstrapper
Fields
silent: bool
Instructs the installer to run the bootstrapper in silent mode. Defaults to true
.
Embed the bootstrapper and run it. Requires internet connection. Increases the installer size by around 1.8MB, but offers better support on Windows 7.
OfflineInstaller
Fields
silent: bool
Instructs the installer to run the installer in silent mode. Defaults to true
.
Embed the offline installer and run it. Does not require internet connection. Increases the installer size by around 127MB.
FixedRuntime
Fields
path: PathBuf
The path to the fixed runtime to use.
The fixed version can be downloaded on the official website.
The .cab
file must be extracted to a folder and this folder path must be defined on this field.
Embed a fixed webview2 version and use it at runtime. Increases the installer size by around 180MB.
Trait Implementations
sourceimpl Clone for WebviewInstallMode
impl Clone for WebviewInstallMode
sourcefn clone(&self) -> WebviewInstallMode
fn clone(&self) -> WebviewInstallMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WebviewInstallMode
impl Debug for WebviewInstallMode
sourceimpl Default for WebviewInstallMode
impl Default for WebviewInstallMode
sourceimpl<'de> Deserialize<'de> for WebviewInstallMode
impl<'de> Deserialize<'de> for WebviewInstallMode
sourcefn 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
sourceimpl PartialEq<WebviewInstallMode> for WebviewInstallMode
impl PartialEq<WebviewInstallMode> for WebviewInstallMode
sourcefn eq(&self, other: &WebviewInstallMode) -> bool
fn eq(&self, other: &WebviewInstallMode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WebviewInstallMode) -> bool
fn ne(&self, other: &WebviewInstallMode) -> bool
This method tests for !=
.
sourceimpl Serialize for WebviewInstallMode
impl Serialize for WebviewInstallMode
impl Eq for WebviewInstallMode
impl StructuralEq for WebviewInstallMode
impl StructuralPartialEq for WebviewInstallMode
Auto Trait Implementations
impl RefUnwindSafe for WebviewInstallMode
impl Send for WebviewInstallMode
impl Sync for WebviewInstallMode
impl Unpin for WebviewInstallMode
impl UnwindSafe for WebviewInstallMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more