Skip to main content

NoopWebViewBackend

Struct NoopWebViewBackend 

Source
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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NoopWebViewBackend

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

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>

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 more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.