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§
fn set(&mut self, enabled: bool) -> Result<(), String>
fn get(&self) -> Result<bool, String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".