pub struct DeviceAccessClient { /* private fields */ }Expand description
Client for DeviceAccess domain commands.
Implementations§
Source§impl DeviceAccessClient
impl DeviceAccessClient
Sourcepub async fn enable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
pub async fn enable(&self, session_id: Option<&str>) -> Result<Value, CdpError>
Enable events in this domain.
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 events in this domain.
Sourcepub async fn select_prompt(
&self,
params: SelectPromptParams,
session_id: Option<&str>,
) -> Result<Value, CdpError>
pub async fn select_prompt( &self, params: SelectPromptParams, session_id: Option<&str>, ) -> Result<Value, CdpError>
Select a device in response to a DeviceAccess.deviceRequestPrompted event.
Sourcepub async fn cancel_prompt(
&self,
params: CancelPromptParams,
session_id: Option<&str>,
) -> Result<Value, CdpError>
pub async fn cancel_prompt( &self, params: CancelPromptParams, session_id: Option<&str>, ) -> Result<Value, CdpError>
Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.
Auto Trait Implementations§
impl Freeze for DeviceAccessClient
impl !RefUnwindSafe for DeviceAccessClient
impl Send for DeviceAccessClient
impl Sync for DeviceAccessClient
impl Unpin for DeviceAccessClient
impl UnsafeUnpin for DeviceAccessClient
impl !UnwindSafe for DeviceAccessClient
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