pub enum WebviewMessage {
Show 26 variants
AddEventListener(WebviewEventId, Box<dyn Fn(&WebviewEvent) + Send>),
EvaluateScript(String),
WebviewEvent(WebviewEvent),
SynthesizedWindowEvent(SynthesizedWindowEvent),
Navigate(Url),
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)
WebviewEvent(WebviewEvent)
SynthesizedWindowEvent(SynthesizedWindowEvent)
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 !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