pub struct Environment { /* private fields */ }
Expand description
Wrapper for ICoreWebView2Environment
.
Implementations§
Source§impl Environment
impl Environment
pub fn into_inner(self) -> ComRc<dyn ICoreWebView2Environment>
pub fn as_inner(&self) -> &ComRc<dyn ICoreWebView2Environment>
Source§impl Environment
impl Environment
pub fn builder<'a>() -> EnvironmentBuilder<'a>
pub fn create_controller( &self, parent_window: HWND, completed: impl FnOnce(Result<Controller>) -> Result<()> + 'static, ) -> Result<()>
pub fn create_web_resource_response( &self, content: Stream, status_code: i32, reason_phrase: &str, headers: &str, ) -> Result<WebResourceResponse>
pub fn get_browser_version_string(&self) -> Result<String>
pub fn add_new_browser_version_available( &self, event_handler: impl Fn(Environment) -> Result<()> + 'static, ) -> Result<EventRegistrationToken>
pub fn remove_new_browser_version_available( &self, token: EventRegistrationToken, ) -> Result<()>
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Environment
impl Debug for Environment
Source§impl From<ComRc<dyn ICoreWebView2Environment>> for Environment
impl From<ComRc<dyn ICoreWebView2Environment>> for Environment
Source§fn from(inner: ComRc<dyn ICoreWebView2Environment>) -> Self
fn from(inner: ComRc<dyn ICoreWebView2Environment>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Environment
impl !RefUnwindSafe for Environment
impl !Send for Environment
impl !Sync for Environment
impl !Unpin for Environment
impl !UnwindSafe for Environment
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