pub struct TimelineEventAddedEvent { /* private fields */ }Available on crate features
experimental and PerformanceTimeline and DOM and Network only.Expand description
Sent when a performance timeline event is added. See reportPerformanceTimeline method.
Implementations§
Source§impl TimelineEventAddedEvent
impl TimelineEventAddedEvent
pub fn new(event: TimelineEvent) -> Self
pub fn event(&self) -> &TimelineEvent
Methods from Deref<Target = TimelineEvent>§
Sourcepub fn frame_id(&self) -> &FrameId
pub fn frame_id(&self) -> &FrameId
Identifies the frame that this event is related to. Empty for non-frame targets.
Sourcepub fn type(&self) -> &str
pub fn type(&self) -> &str
The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype This determines which of the optional “details” fiedls is present.
Sourcepub fn time(&self) -> &TimeSinceEpoch
pub fn time(&self) -> &TimeSinceEpoch
Time in seconds since Epoch, monotonically increasing within document lifetime.
pub fn lcp_details(&self) -> Option<&LargestContentfulPaint>
pub fn layout_shift_details(&self) -> Option<&LayoutShift>
Trait Implementations§
Source§impl Clone for TimelineEventAddedEvent
impl Clone for TimelineEventAddedEvent
Source§fn clone(&self) -> TimelineEventAddedEvent
fn clone(&self) -> TimelineEventAddedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimelineEventAddedEvent
impl Debug for TimelineEventAddedEvent
Source§impl Deref for TimelineEventAddedEvent
impl Deref for TimelineEventAddedEvent
Source§impl<'de> Deserialize<'de> for TimelineEventAddedEvent
impl<'de> Deserialize<'de> for TimelineEventAddedEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimelineEventAddedEvent
impl RefUnwindSafe for TimelineEventAddedEvent
impl Send for TimelineEventAddedEvent
impl Sync for TimelineEventAddedEvent
impl Unpin for TimelineEventAddedEvent
impl UnwindSafe for TimelineEventAddedEvent
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