pub struct LargestContentfulPaint<'a> { /* private fields */ }Expand description
See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl
Implementations§
Source§impl<'a> LargestContentfulPaint<'a>
impl<'a> LargestContentfulPaint<'a>
Sourcepub fn builder(
render_time: TimeSinceEpoch,
load_time: TimeSinceEpoch,
size: f64,
) -> LargestContentfulPaintBuilder<'a>
pub fn builder( render_time: TimeSinceEpoch, load_time: TimeSinceEpoch, size: f64, ) -> LargestContentfulPaintBuilder<'a>
Creates a builder for this type with the required parameters:
render_time:load_time:size: The number of pixels being painted.
pub fn render_time(&self) -> &TimeSinceEpoch
pub fn load_time(&self) -> &TimeSinceEpoch
Sourcepub fn element_id(&self) -> Option<&str>
pub fn element_id(&self) -> Option<&str>
The id attribute of the element, if available.
pub fn node_id(&self) -> Option<&BackendNodeId>
Trait Implementations§
Source§impl<'a> Clone for LargestContentfulPaint<'a>
impl<'a> Clone for LargestContentfulPaint<'a>
Source§fn clone(&self) -> LargestContentfulPaint<'a>
fn clone(&self) -> LargestContentfulPaint<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LargestContentfulPaint<'a>
impl<'a> Debug for LargestContentfulPaint<'a>
Source§impl<'a> Default for LargestContentfulPaint<'a>
impl<'a> Default for LargestContentfulPaint<'a>
Source§fn default() -> LargestContentfulPaint<'a>
fn default() -> LargestContentfulPaint<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for LargestContentfulPaint<'a>
impl<'de, 'a> Deserialize<'de> for LargestContentfulPaint<'a>
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<'a> Freeze for LargestContentfulPaint<'a>
impl<'a> RefUnwindSafe for LargestContentfulPaint<'a>
impl<'a> Send for LargestContentfulPaint<'a>
impl<'a> Sync for LargestContentfulPaint<'a>
impl<'a> Unpin for LargestContentfulPaint<'a>
impl<'a> UnsafeUnpin for LargestContentfulPaint<'a>
impl<'a> UnwindSafe for LargestContentfulPaint<'a>
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