pub struct TimelineEventBuilder { /* private fields */ }Available on crate features
experimental and PerformanceTimeline and DOM and Network only.Implementations§
Source§impl TimelineEventBuilder
impl TimelineEventBuilder
Sourcepub fn frame_id(&mut self, v: FrameId) -> &mut Self
pub fn frame_id(&mut self, v: FrameId) -> &mut Self
Identifies the frame that this event is related to. Empty for non-frame targets.
Sourcepub fn type(&mut self, v: String) -> &mut Self
pub fn type(&mut self, v: String) -> &mut Self
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(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn time(&mut self, v: TimeSinceEpoch) -> &mut Self
Time in seconds since Epoch, monotonically increasing within document lifetime.
pub fn lcp_details(&mut self, v: LargestContentfulPaint) -> &mut Self
pub fn layout_shift_details(&mut self, v: LayoutShift) -> &mut Self
pub fn build(&mut self) -> Result<TimelineEvent, &'static str>
Trait Implementations§
Source§impl Clone for TimelineEventBuilder
impl Clone for TimelineEventBuilder
Source§fn clone(&self) -> TimelineEventBuilder
fn clone(&self) -> TimelineEventBuilder
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 TimelineEventBuilder
impl Debug for TimelineEventBuilder
Auto Trait Implementations§
impl Freeze for TimelineEventBuilder
impl RefUnwindSafe for TimelineEventBuilder
impl Send for TimelineEventBuilder
impl Sync for TimelineEventBuilder
impl Unpin for TimelineEventBuilder
impl UnwindSafe for TimelineEventBuilder
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