pub struct DevToolsGate { /* private fields */ }Expand description
Which webviews are inspectable. Built once at startup and kept in Tauri state.
Implementations§
Source§impl DevToolsGate
impl DevToolsGate
Sourcepub fn is_dev_inspect(&self) -> bool
pub fn is_dev_inspect(&self) -> bool
Whether this gate allows developer inspection. Always false: no build produces such a
gate. Kept so existing callers keep compiling.
pub fn policy(&self) -> DevToolsPolicy
Sourcepub fn content_labels(&self) -> Vec<String>
pub fn content_labels(&self) -> Vec<String>
Registered content webview labels or prefix patterns (empty under Denied).
Sourcepub fn decide(&self, label: &str) -> WebviewDecision
pub fn decide(&self, label: &str) -> WebviewDecision
What to do with the webview labelled label. Anything not registered is denied, and the
main webview is denied whatever else is true.
Trait Implementations§
Source§impl Clone for DevToolsGate
impl Clone for DevToolsGate
Source§impl Debug for DevToolsGate
impl Debug for DevToolsGate
impl Eq for DevToolsGate
Source§impl PartialEq for DevToolsGate
impl PartialEq for DevToolsGate
impl StructuralPartialEq for DevToolsGate
Auto Trait Implementations§
impl Freeze for DevToolsGate
impl RefUnwindSafe for DevToolsGate
impl Send for DevToolsGate
impl Sync for DevToolsGate
impl Unpin for DevToolsGate
impl UnsafeUnpin for DevToolsGate
impl UnwindSafe for DevToolsGate
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§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
Compare self to
key and return true if they are equal.