#[non_exhaustive]pub struct WebviewSnapshot {
pub browser_id: i32,
pub dialogs: NativeDialogObservation,
pub document: Option<NativeDocumentToken>,
pub window_label: Option<String>,
pub window: Option<NativeWindowToken>,
pub parent_matches: Option<bool>,
pub bounds: Option<Rect>,
pub visible: Option<bool>,
}Expand description
Native state sampled on the CEF UI thread immediately before a
with_webview callback. This does not assert renderer responsiveness or
that the view is unobscured on screen.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.browser_id: i32Native browser identity, distinct for each popup.
dialogs: NativeDialogObservationNative JavaScript dialog observation. Unknown is distinct from absent.
document: Option<NativeDocumentToken>All-frame document generation validated against the current native frame
identities and load state. None means document admission is unavailable.
window_label: Option<String>Runtime window label; CEF-owned popups have no Tauri window label.
window: Option<NativeWindowToken>Opaque lifetime of the runtime window. Labels and native handle values
may be reused after teardown; this token distinguishes their replacements.
None means the runtime could not observe a native window lifetime.
parent_matches: Option<bool>Whether the actual native parent matches the observed native window.
None means the platform could not establish the relationship. A
CEF-owned popup always reports None, permanently rather than
transiently: CEF owns its native window, so there is no independently
observed parent for the runtime to check it against. Offscreen webviews
also report None because there is no native browser child.
bounds: Option<Rect>Current bounds relative to the native parent, in the indicated DPI units. Offscreen bounds are the requested layout, in logical pixels.
visible: Option<bool>Native view visibility. None means native inspection was unavailable.
Visibility is separate from occlusion, minimization, and page lifecycle.
Offscreen webviews report their requested visibility.
Trait Implementations§
Source§impl Clone for WebviewSnapshot
impl Clone for WebviewSnapshot
Auto Trait Implementations§
impl Freeze for WebviewSnapshot
impl RefUnwindSafe for WebviewSnapshot
impl Send for WebviewSnapshot
impl Sync for WebviewSnapshot
impl Unpin for WebviewSnapshot
impl UnsafeUnpin for WebviewSnapshot
impl UnwindSafe for WebviewSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
impl<T, U> ConvertReturnValue<U> for Twhere
T: Into<U>,
fn wrap_result(self) -> U
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.