[−][src]Struct browser_window::BrowserWindowHandle
A browser window handle that can not be instantiated, but is provided by handlers.
Implementations
impl BrowserWindowHandle
[src]
pub fn close(self)
[src]
Closes the browser.
pub fn eval_js<'a, H>(&self, js: &str, on_complete: H) where
H: FnOnce(BrowserWindowHandle, Result<String, Box<dyn Error + Send>>) + Send + 'a,
[src]
H: FnOnce(BrowserWindowHandle, Result<String, Box<dyn Error + Send>>) + Send + 'a,
Executes the given javascript code, and returns the output via a callback. If you don't need the result, see "exec_js".
Arguments:
js
- The javascript code to execute.on_complete
- The 'callback'. This closure will be invoked, with the result provided as the first argument. The result contains the output of the javascript code when it succeeded. Otherwise the error explains the javascript exception.
pub fn exec_js(&self, js: &str)
[src]
Executes the given javascript code without waiting on it to finish.
Arguments:
js
- The javascript code
pub unsafe fn from_ptr(ptr: *mut bw_BrowserWindow) -> Self
[src]
pub fn navigate(&self, url: &str) -> Result<(), Box<dyn Error + Send>>
[src]
Trait Implementations
impl Clone for BrowserWindowHandle
[src]
fn clone(&self) -> BrowserWindowHandle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Send for BrowserWindowHandle
[src]
impl Sync for BrowserWindowHandle
[src]
Auto Trait Implementations
impl RefUnwindSafe for BrowserWindowHandle
impl Unpin for BrowserWindowHandle
impl UnwindSafe for BrowserWindowHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,