pub struct NoopWebViewBackend;Expand description
A backend that renders nothing and records nothing — every call is a no-op.
Unlike MemoryWebViewBackend (which accumulates an unbounded op log for
test assertions), this is safe to install in a long-running app as the
placeholder default until a native engine backend is wired. Used by
install_web_view_default.
Trait Implementations§
Source§impl Debug for NoopWebViewBackend
impl Debug for NoopWebViewBackend
Source§impl Default for NoopWebViewBackend
impl Default for NoopWebViewBackend
Source§impl WebViewBackend for NoopWebViewBackend
impl WebViewBackend for NoopWebViewBackend
Source§fn open(
&mut self,
_web_view_id: WebViewId,
_window_id: TeksiloWindowId,
_parent: Option<ParentHandle>,
_attrs: WebViewAttributes,
_poster: Option<Arc<dyn AppEventPoster>>,
) -> Box<dyn WebViewHandle>
fn open( &mut self, _web_view_id: WebViewId, _window_id: TeksiloWindowId, _parent: Option<ParentHandle>, _attrs: WebViewAttributes, _poster: Option<Arc<dyn AppEventPoster>>, ) -> Box<dyn WebViewHandle>
Create a native engine subview for
web_view_id, parented to
window_id’s OS window. The backend MUST deliver browser events by
calling AppEventPoster::post_external on poster with a boxed
WebViewEventPayload whose web_view_id / window_id_owner match. Read moreAuto Trait Implementations§
impl Freeze for NoopWebViewBackend
impl RefUnwindSafe for NoopWebViewBackend
impl Send for NoopWebViewBackend
impl Sync for NoopWebViewBackend
impl Unpin for NoopWebViewBackend
impl UnsafeUnpin for NoopWebViewBackend
impl UnwindSafe for NoopWebViewBackend
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