#[non_exhaustive]pub struct FrameEvent {
pub browser_id: i32,
pub frame_id: String,
pub is_main: bool,
pub kind: FrameEventKind,
}Expand description
One browser-process notification about a native CEF frame.
Notifications run synchronously on CEF’s UI thread. Handlers must return promptly and must not call APIs that wait for the event loop. Unlike Tauri’s portable navigation callbacks, these notifications include child frames.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.browser_id: i32Native browser identity. Every event delivered to one webview’s observer carries that webview’s own identity; a CEF-owned popup is a different browser and is not reported here.
frame_id: StringCEF’s opaque identifier for this native frame lifetime. Empty for a browser-wide notification when no main frame exists.
is_main: boolWhether CEF identifies this as the main frame at callback time.
kind: FrameEventKindNative lifecycle phase.
Trait Implementations§
Source§impl Clone for FrameEvent
impl Clone for FrameEvent
Auto Trait Implementations§
impl Freeze for FrameEvent
impl RefUnwindSafe for FrameEvent
impl Send for FrameEvent
impl Sync for FrameEvent
impl Unpin for FrameEvent
impl UnsafeUnpin for FrameEvent
impl UnwindSafe for FrameEvent
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
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.