#[non_exhaustive]pub enum FrameEventKind {
Created,
Attached,
Detached,
Destroyed,
NavigationStarted {
url: Url,
},
DocumentCommitted {
url: Url,
},
NavigationFailed {
url: Url,
},
AddressChanged {
url: Url,
},
MainFrameChanged,
LoadingStateChanged {
is_loading: bool,
},
RendererTerminated,
}Expand description
Native lifecycle phases reported for every frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Created
A frame object exists, but may not yet have a renderer connection.
Attached
Commands can be routed to the renderer. Reattachment is also reported.
Detached
The frame can no longer route commands to its renderer.
Destroyed
The native frame object is being destroyed.
A navigation was admitted by the existing navigation policy, before commit.
DocumentCommitted
A document committed, before its contents begin loading.
Navigation failed or was cancelled. This is not a document-ready signal.
AddressChanged
An address changed, including a same-document history or fragment change.
MainFrameChanged
The browser assigned this frame as its main frame.
LoadingStateChanged
Browser-wide load state. false follows every frame’s load-end/error
notifications, including cancelled navigation. It does not assert DOM,
application, network-idle, or renderer responsiveness.
RendererTerminated
The renderer terminated. Prior document generations cannot be reused.
Trait Implementations§
Source§impl Clone for FrameEventKind
impl Clone for FrameEventKind
Auto Trait Implementations§
impl Freeze for FrameEventKind
impl RefUnwindSafe for FrameEventKind
impl Send for FrameEventKind
impl Sync for FrameEventKind
impl Unpin for FrameEventKind
impl UnsafeUnpin for FrameEventKind
impl UnwindSafe for FrameEventKind
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.