pub enum DevToolsError {
Show 16 variants
RemoteDebuggingArgument {
arg: String,
},
BrowserPolicyInjects {
source: String,
switch: String,
},
BrowserRuntimeRedirected {
source: String,
folder: String,
},
RegistryUnreadable {
detail: String,
},
RemoteDebugPortLive {
path: PathBuf,
},
NotContentOnly,
ContentDevtoolsNotCompiled,
InvalidLabel {
label: String,
},
MainWebview {
label: String,
},
ContentHasIpc {
label: String,
capability: String,
},
CapabilitiesUnreadable {
detail: String,
},
AppAclManifestMissing {
label: String,
},
NotAContentWebview {
label: String,
},
NotInstalled,
WebviewMissing {
label: String,
},
NativePolicyNotApplied {
label: String,
detail: String,
},
}Expand description
A refusal. Every variant is fatal at startup; there is no inspectable fallback.
Variants§
RemoteDebuggingArgument
The process was launched with a remote-debugging or auto-open-DevTools argument.
BrowserPolicyInjects
A machine or user policy injects a debugging browser argument into WebView2.
BrowserRuntimeRedirected
A machine or user policy makes WebView2 start a browser from another folder than the installed runtime.
RegistryUnreadable
The Windows policy registry could not be read, so the policy cannot be ruled out.
RemoteDebugPortLive
A remote-debugging port file written by this process’s WebView2 exists.
NotContentOnly
Content webviews were registered but the policy is Denied.
ContentDevtoolsNotCompiled
ContentOnly needs the content-devtools feature (it enables Tauri’s devtools).
InvalidLabel
The label is empty or not a valid Tauri label.
MainWebview
The main (app UI) webview can never be a content webview.
ContentHasIpc
A capability applies to the content webview and grants permissions.
CapabilitiesUnreadable
A capability document could not be parsed.
AppAclManifestMissing
The app did not attest an application ACL manifest.
NotAContentWebview
The webview is not a registered content webview.
NotInstalled
The shell’s DevTools gate is not installed.
WebviewMissing
The webview does not exist.
NativePolicyNotApplied
DevTools could not be disabled in a denied webview, so the webview is refused.
Implementations§
Trait Implementations§
Source§impl Clone for DevToolsError
impl Clone for DevToolsError
Source§impl Debug for DevToolsError
impl Debug for DevToolsError
Source§impl Display for DevToolsError
impl Display for DevToolsError
impl Eq for DevToolsError
Source§impl Error for DevToolsError
impl Error for DevToolsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<DevToolsError> for ShellError
impl From<DevToolsError> for ShellError
Source§fn from(e: DevToolsError) -> Self
fn from(e: DevToolsError) -> Self
Source§impl PartialEq for DevToolsError
impl PartialEq for DevToolsError
impl StructuralPartialEq for DevToolsError
Auto Trait Implementations§
impl Freeze for DevToolsError
impl RefUnwindSafe for DevToolsError
impl Send for DevToolsError
impl Sync for DevToolsError
impl Unpin for DevToolsError
impl UnsafeUnpin for DevToolsError
impl UnwindSafe for DevToolsError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.