pub struct WebView { /* private fields */ }
Implementations§
Source§impl WebView
impl WebView
pub fn new<S: Into<String>, SD: Into<String> + Display>( title: S, content: Content<SD>, width: i32, height: i32, resizable: bool, debug: bool, ) -> Result<Self, NulError>
pub fn dispatch<T: Fn(&WebView) + 'static>(&self, cb: T)
pub fn set_title<S: Into<String>>(&self, title: S) -> Result<(), NulError>
pub fn eval<S: Into<String>>(&self, js: S) -> Result<(), NulError>
pub fn inject_css<S: Into<String>>(&self, css: S) -> Result<(), NulError>
pub fn join(&self)
pub fn exit(&self)
pub fn loop_once(&self, blocking: bool) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebView
impl RefUnwindSafe for WebView
impl !Send for WebView
impl !Sync for WebView
impl Unpin for WebView
impl UnwindSafe for WebView
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