pub struct TimelineEvent { /* private fields */ }Available on crate features
experimental and PerformanceTimeline and DOM and Network only.Implementations§
Source§impl TimelineEvent
impl TimelineEvent
pub fn builder() -> TimelineEventBuilder
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 TimelineEvent
impl Clone for TimelineEvent
Source§fn clone(&self) -> TimelineEvent
fn clone(&self) -> TimelineEvent
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 TimelineEvent
impl Debug for TimelineEvent
Source§impl<'de> Deserialize<'de> for TimelineEvent
impl<'de> Deserialize<'de> for TimelineEvent
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 TimelineEvent
impl RefUnwindSafe for TimelineEvent
impl Send for TimelineEvent
impl Sync for TimelineEvent
impl Unpin for TimelineEvent
impl UnwindSafe for TimelineEvent
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