Skip to main content

DevToolsSwitch

Trait DevToolsSwitch 

Source
pub trait DevToolsSwitch {
    // Required methods
    fn set(&mut self, enabled: bool) -> Result<(), String>;
    fn get(&self) -> Result<bool, String>;
}
Expand description

The native DevTools setting of one webview, as enforce_switch needs it.

Required Methods§

Source

fn set(&mut self, enabled: bool) -> Result<(), String>

Source

fn get(&self) -> Result<bool, String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§