pub struct EnableParams<'a> { /* private fields */ }Expand description
Previously buffered events would be reported before method returns. See also: timelineEventAdded
Implementations§
Source§impl<'a> EnableParams<'a>
impl<'a> EnableParams<'a>
Sourcepub fn builder(event_types: Vec<Cow<'a, str>>) -> EnableParamsBuilder<'a>
pub fn builder(event_types: Vec<Cow<'a, str>>) -> EnableParamsBuilder<'a>
Creates a builder for this type with the required parameters:
event_types: The types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported.
Sourcepub fn event_types(&self) -> &[Cow<'a, str>]
pub fn event_types(&self) -> &[Cow<'a, str>]
The types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported.
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for EnableParams<'a>
impl<'a> CdpCommand<'a> for EnableParams<'a>
Source§impl<'a> Clone for EnableParams<'a>
impl<'a> Clone for EnableParams<'a>
Source§fn clone(&self) -> EnableParams<'a>
fn clone(&self) -> EnableParams<'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 EnableParams<'a>
impl<'a> Debug for EnableParams<'a>
Source§impl<'a> Default for EnableParams<'a>
impl<'a> Default for EnableParams<'a>
Source§fn default() -> EnableParams<'a>
fn default() -> EnableParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for EnableParams<'a>
impl<'de, 'a> Deserialize<'de> for EnableParams<'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 EnableParams<'a>
impl<'a> RefUnwindSafe for EnableParams<'a>
impl<'a> Send for EnableParams<'a>
impl<'a> Sync for EnableParams<'a>
impl<'a> Unpin for EnableParams<'a>
impl<'a> UnsafeUnpin for EnableParams<'a>
impl<'a> UnwindSafe for EnableParams<'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