pub struct SecurityClient { /* private fields */ }Expand description
Client for Security domain commands.
Implementations§
Source§impl SecurityClient
impl SecurityClient
Sourcepub async fn disable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
pub async fn disable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
Disables tracking security state changes.
Sourcepub async fn enable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
pub async fn enable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
Enables tracking security state changes.
Sourcepub async fn set_ignore_certificate_errors(
&self,
params: SetIgnoreCertificateErrorsParams,
session_id: Option<&str>,
) -> Result<Value, CdpError>
pub async fn set_ignore_certificate_errors( &self, params: SetIgnoreCertificateErrorsParams, session_id: Option<&str>, ) -> Result<Value, CdpError>
Enable/disable whether all certificate errors should be ignored.
Sourcepub async fn handle_certificate_error(
&self,
params: HandleCertificateErrorParams,
session_id: Option<&str>,
) -> Result<Value, CdpError>
pub async fn handle_certificate_error( &self, params: HandleCertificateErrorParams, session_id: Option<&str>, ) -> Result<Value, CdpError>
Handles a certificate error that fired a certificateError event.
Sourcepub async fn set_override_certificate_errors(
&self,
params: SetOverrideCertificateErrorsParams,
session_id: Option<&str>,
) -> Result<Value, CdpError>
pub async fn set_override_certificate_errors( &self, params: SetOverrideCertificateErrorsParams, session_id: Option<&str>, ) -> Result<Value, CdpError>
Enable/disable overriding certificate errors. If enabled, all certificate error events need to
be handled by the DevTools client and should be answered with handleCertificateError commands.
Auto Trait Implementations§
impl Freeze for SecurityClient
impl !RefUnwindSafe for SecurityClient
impl Send for SecurityClient
impl Sync for SecurityClient
impl Unpin for SecurityClient
impl UnsafeUnpin for SecurityClient
impl !UnwindSafe for SecurityClient
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