pub struct DaemonClient { /* private fields */ }Expand description
Client for communicating with the rpytest daemon.
Implementations§
Source§impl DaemonClient
impl DaemonClient
Sourcepub async fn connect(path: impl AsRef<Path>) -> Result<Self, IpcError>
pub async fn connect(path: impl AsRef<Path>) -> Result<Self, IpcError>
Connect to the daemon at the given socket path.
Sourcepub async fn send(&self, request: &Request) -> Result<Response, IpcError>
pub async fn send(&self, request: &Request) -> Result<Response, IpcError>
Send a request and wait for a response.
Auto Trait Implementations§
impl Freeze for DaemonClient
impl RefUnwindSafe for DaemonClient
impl Send for DaemonClient
impl Sync for DaemonClient
impl Unpin for DaemonClient
impl UnsafeUnpin for DaemonClient
impl UnwindSafe for DaemonClient
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