pub struct WryBindgen { /* private fields */ }Expand description
Per-webview wry-bindgen session.
Each session owns one JavaScript realm. Split it into a runtime endpoint for the app thread and a driver that must be polled on the webview thread.
Implementations§
Source§impl WryBindgen
impl WryBindgen
Sourcepub fn protocol_handler(&self) -> ProtocolHandler
pub fn protocol_handler(&self) -> ProtocolHandler
Get the protocol handler for this webview.
Sourcepub fn split(self) -> (WryBindgenRuntime, WryBindgenDriver)
pub fn split(self) -> (WryBindgenRuntime, WryBindgenDriver)
Split the session into an app-thread runtime endpoint and a main-thread driver.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WryBindgen
impl !Send for WryBindgen
impl !Sync for WryBindgen
impl !UnwindSafe for WryBindgen
impl Freeze for WryBindgen
impl Unpin for WryBindgen
impl UnsafeUnpin for WryBindgen
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