pub struct PerformanceClient { /* private fields */ }Expand description
Client for Performance domain commands.
Implementations§
Source§impl PerformanceClient
impl PerformanceClient
Sourcepub async fn disable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
pub async fn disable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
Disable collecting and reporting metrics.
Sourcepub async fn enable(
&self,
params: EnableParams,
session_id: Option<&str>,
) -> Result<Value, CdpError>
pub async fn enable( &self, params: EnableParams, session_id: Option<&str>, ) -> Result<Value, CdpError>
Enable collecting and reporting metrics.
Sourcepub async fn set_time_domain(
&self,
params: SetTimeDomainParams,
session_id: Option<&str>,
) -> Result<Value, CdpError>
pub async fn set_time_domain( &self, params: SetTimeDomainParams, session_id: Option<&str>, ) -> Result<Value, CdpError>
Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.
Sourcepub async fn get_metrics(
&self,
session_id: Option<&str>,
) -> Result<GetMetricsReturns, CdpError>
pub async fn get_metrics( &self, session_id: Option<&str>, ) -> Result<GetMetricsReturns, CdpError>
Retrieve current values of run-time metrics.
Auto Trait Implementations§
impl Freeze for PerformanceClient
impl !RefUnwindSafe for PerformanceClient
impl Send for PerformanceClient
impl Sync for PerformanceClient
impl Unpin for PerformanceClient
impl UnsafeUnpin for PerformanceClient
impl !UnwindSafe for PerformanceClient
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