pub struct Settings { /* private fields */ }
Expand description
Wrapper for ICoreWebView2Settings
.
Implementations§
Source§impl Settings
impl Settings
pub fn into_inner(self) -> ComRc<dyn ICoreWebView2Settings>
pub fn as_inner(&self) -> &ComRc<dyn ICoreWebView2Settings>
Source§impl Settings
impl Settings
pub fn get_is_script_enabled(&self) -> Result<bool>
pub fn put_is_script_enabled(&self, enabled: bool) -> Result<()>
pub fn get_is_web_message_enabled(&self) -> Result<bool>
pub fn put_is_web_message_enabled(&self, enabled: bool) -> Result<()>
pub fn get_are_default_script_dialogs_enabled(&self) -> Result<bool>
pub fn put_are_default_script_dialogs_enabled( &self, enabled: bool, ) -> Result<()>
pub fn get_is_status_bar_enabled(&self) -> Result<bool>
pub fn put_is_status_bar_enabled(&self, enabled: bool) -> Result<()>
pub fn get_are_dev_tools_enabled(&self) -> Result<bool>
pub fn put_are_dev_tools_enabled(&self, enabled: bool) -> Result<()>
pub fn get_are_host_objects_allowed(&self) -> Result<bool>
pub fn put_are_host_objects_allowed(&self, enabled: bool) -> Result<()>
pub fn get_is_zoom_control_enabled(&self) -> Result<bool>
pub fn put_is_zoom_control_enabled(&self, enabled: bool) -> Result<()>
pub fn get_is_built_in_error_page_enabled(&self) -> Result<bool>
pub fn put_is_built_in_error_page_enabled(&self, enabled: bool) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl !RefUnwindSafe for Settings
impl !Send for Settings
impl !Sync for Settings
impl !Unpin for Settings
impl !UnwindSafe for Settings
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