pub enum WebViewVisualState {
Loading,
Ready,
Error,
}Expand description
Lifecycle/visual state of a web view, driving the overlay chrome. Defined
here (not in teksilo-webview) so the core style trait and the default
recipe can both name it — mirroring DropZoneVisualState.
Variants§
Loading
The engine is loading the current page — show the loading shimmer.
Ready
The page has finished loading and is displayed by the engine subview. The overlay is fully transparent; only the focus ring may show.
Error
Navigation or engine init failed — show the error chrome. Also the state the Wayland-without-Servo / unsupported-platform path lands in.
Implementations§
Source§impl WebViewVisualState
impl WebViewVisualState
Sourcepub fn surface_role(self) -> SurfaceRole
pub fn surface_role(self) -> SurfaceRole
Background surface-tint role for the overlay in this state.
Sourcepub fn border_role(self) -> BorderRole
pub fn border_role(self) -> BorderRole
Border role for the overlay/focus chrome in this state.
Trait Implementations§
Source§impl Clone for WebViewVisualState
impl Clone for WebViewVisualState
Source§fn clone(&self) -> WebViewVisualState
fn clone(&self) -> WebViewVisualState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WebViewVisualState
Source§impl Debug for WebViewVisualState
impl Debug for WebViewVisualState
impl Eq for WebViewVisualState
Source§impl PartialEq for WebViewVisualState
impl PartialEq for WebViewVisualState
impl StructuralPartialEq for WebViewVisualState
Auto Trait Implementations§
impl Freeze for WebViewVisualState
impl RefUnwindSafe for WebViewVisualState
impl Send for WebViewVisualState
impl Sync for WebViewVisualState
impl Unpin for WebViewVisualState
impl UnsafeUnpin for WebViewVisualState
impl UnwindSafe for WebViewVisualState
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