Struct webview2::Environment [−][src]
pub struct Environment { /* fields omitted */ }
Expand description
Wrapper for ICoreWebView2Environment
.
Implementations
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 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
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Environment
impl !Send for Environment
impl !Sync for Environment
impl !Unpin for Environment
impl !UnwindSafe for Environment
Blanket Implementations
Mutably borrows from an owned value. Read more