pub enum WebViewOp {
Show 16 variants
Open {
web_view_id: WebViewId,
},
SetBounds {
web_view_id: WebViewId,
bounds: Rect,
},
LoadUrl {
web_view_id: WebViewId,
url: String,
},
LoadHtml {
web_view_id: WebViewId,
},
Eval {
web_view_id: WebViewId,
script: String,
},
PostMessage {
web_view_id: WebViewId,
msg: String,
},
Reload {
web_view_id: WebViewId,
},
GoBack {
web_view_id: WebViewId,
},
GoForward {
web_view_id: WebViewId,
},
Stop {
web_view_id: WebViewId,
},
SetVisible {
web_view_id: WebViewId,
visible: bool,
},
SetFocus {
web_view_id: WebViewId,
},
SetInputPassthrough {
web_view_id: WebViewId,
passthrough: bool,
},
OpenDevtools {
web_view_id: WebViewId,
},
CloseDevtools {
web_view_id: WebViewId,
},
Dropped {
web_view_id: WebViewId,
},
}Expand description
One recorded backend operation. Lets tests assert the exact call sequence (open → set_bounds → set_visible(false) → set_visible(true) → …) without a real engine, window, or GPU.
Variants§
Open
SetBounds
LoadUrl
LoadHtml
Eval
PostMessage
Reload
GoBack
GoForward
Stop
SetVisible
SetFocus
SetInputPassthrough
OpenDevtools
CloseDevtools
Dropped
Trait Implementations§
impl StructuralPartialEq for WebViewOp
Auto Trait Implementations§
impl Freeze for WebViewOp
impl RefUnwindSafe for WebViewOp
impl Send for WebViewOp
impl Sync for WebViewOp
impl Unpin for WebViewOp
impl UnsafeUnpin for WebViewOp
impl UnwindSafe for WebViewOp
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