pub enum WebviewMessage {
Show 32 variants
AddEventListener(WebviewEventId, Box<dyn Fn(&WebviewEvent) + Send>),
EvaluateScript(String),
EvaluateScriptWithCallback(String, Box<dyn Fn(String) + Send + 'static>),
CookiesForUrl(Url, Sender<Result<Vec<Cookie<'static>>>>),
Cookies(Sender<Result<Vec<Cookie<'static>>>>),
SetCookie(Cookie<'static>),
DeleteCookie(Cookie<'static>),
WebviewEvent(WebviewEvent),
SynthesizedWindowEvent(SynthesizedWindowEvent),
Navigate(Url),
Reload,
Print,
Close,
Show,
Hide,
SetPosition(Position),
SetSize(Size),
SetBounds(Rect),
SetFocus,
Reparent(WindowId, Sender<Result<()>>),
SetAutoResize(bool),
SetZoom(f64),
SetBackgroundColor(Option<Color>),
ClearAllBrowsingData,
Url(Sender<Result<String>>),
Bounds(Sender<Result<Rect>>),
Position(Sender<Result<PhysicalPosition<i32>>>),
Size(Sender<Result<PhysicalSize<u32>>>),
WithWebview(Box<dyn FnOnce(Webview) + Send>),
OpenDevTools,
CloseDevTools,
IsDevToolsOpen(Sender<bool>),
}Variants§
AddEventListener(WebviewEventId, Box<dyn Fn(&WebviewEvent) + Send>)
EvaluateScript(String)
EvaluateScriptWithCallback(String, Box<dyn Fn(String) + Send + 'static>)
CookiesForUrl(Url, Sender<Result<Vec<Cookie<'static>>>>)
Cookies(Sender<Result<Vec<Cookie<'static>>>>)
SetCookie(Cookie<'static>)
DeleteCookie(Cookie<'static>)
WebviewEvent(WebviewEvent)
SynthesizedWindowEvent(SynthesizedWindowEvent)
Reload
Close
Show
Hide
SetPosition(Position)
SetSize(Size)
SetBounds(Rect)
SetFocus
Reparent(WindowId, Sender<Result<()>>)
SetAutoResize(bool)
SetZoom(f64)
SetBackgroundColor(Option<Color>)
ClearAllBrowsingData
Url(Sender<Result<String>>)
Bounds(Sender<Result<Rect>>)
Position(Sender<Result<PhysicalPosition<i32>>>)
Size(Sender<Result<PhysicalSize<u32>>>)
WithWebview(Box<dyn FnOnce(Webview) + Send>)
OpenDevTools
CloseDevTools
IsDevToolsOpen(Sender<bool>)
Auto Trait Implementations§
impl Freeze for WebviewMessage
impl !RefUnwindSafe for WebviewMessage
impl Send for WebviewMessage
impl !Sync for WebviewMessage
impl Unpin for WebviewMessage
impl UnsafeUnpin for WebviewMessage
impl !UnwindSafe for WebviewMessage
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