pub struct CdpClient { /* private fields */ }Implementations§
Source§impl CdpClient
impl CdpClient
pub async fn new( host: &str, default_timeout: Duration, ) -> Result<CdpClient, CdpError>
pub fn subscribe(&self) -> Receiver<WsResponse>
pub fn on_domain(&self, domain: &'static str) -> EventFilter
pub async fn send_raw_command<P>(
&self,
method: &str,
params: P,
) -> Result<WsResponse, CdpError>where
P: Serialize,
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CdpClient
impl !UnwindSafe for CdpClient
impl Freeze for CdpClient
impl Send for CdpClient
impl Sync for CdpClient
impl Unpin for CdpClient
impl UnsafeUnpin for CdpClient
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