pub struct WebViewPlugin { /* private fields */ }Expand description
Plugin for managing WebView instances.
This plugin handles the lifecycle of WRY WebViews, creating them when elements are added and destroying them when elements are removed.
Implementations§
Source§impl WebViewPlugin
impl WebViewPlugin
Trait Implementations§
Source§impl Default for WebViewPlugin
impl Default for WebViewPlugin
Source§impl FreyaPlugin for WebViewPlugin
impl FreyaPlugin for WebViewPlugin
Source§fn plugin_id(&self) -> &'static str
fn plugin_id(&self) -> &'static str
Unique identifier for this plugin. Used for deduplication.
Source§fn on_event(&mut self, event: &mut PluginEvent<'_>, _handle: PluginHandle)
fn on_event(&mut self, event: &mut PluginEvent<'_>, _handle: PluginHandle)
React on events emitted by Freya.
§fn root_component(&self, root: Element) -> Element
fn root_component(&self, root: Element) -> Element
Wrap the root element with a custom component.
Called during window creation. The default implementation returns the element unchanged.
Auto Trait Implementations§
impl Freeze for WebViewPlugin
impl !RefUnwindSafe for WebViewPlugin
impl !Send for WebViewPlugin
impl !Sync for WebViewPlugin
impl Unpin for WebViewPlugin
impl UnsafeUnpin for WebViewPlugin
impl !UnwindSafe for WebViewPlugin
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoReadable<T> for Twhere
T: 'static,
impl<T> IntoReadable<T> for Twhere
T: 'static,
fn into_readable(self) -> Readable<T>
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().