pub struct CdpClient { /* private fields */ }Implementations§
Source§impl CdpClient
impl CdpClient
pub fn new( cmd_tx: UnboundedSender<(u32, Value, Sender<XcelerateResult<Value>>)>, event_tx: Sender<Value>, ) -> Self
pub fn subscribe(&self) -> Receiver<Value>
pub async fn execute<T: CdpCommand>( &self, params: T, ) -> XcelerateResult<T::Response>
pub async fn execute_with_session<T: CdpCommand>( &self, session_id: Option<&str>, params: T, ) -> XcelerateResult<T::Response>
Auto Trait Implementations§
impl !Freeze for CdpClient
impl !RefUnwindSafe for CdpClient
impl Send for CdpClient
impl Sync for CdpClient
impl Unpin for CdpClient
impl UnsafeUnpin for CdpClient
impl !UnwindSafe 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