diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-07-16 11:28:52 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-07-16 11:57:26 +0200 |
commit | 7bde618ccdd7d03cdb115f558e919219b0910319 (patch) | |
tree | 6ef62e429ffa7594ee15e5701643331a67135135 /ipc | |
parent | 67274203bb852749c420f0ef7fd7dec8d55ef4ef (diff) |
ipc: Make assuan::Client Send and Sync.
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/src/assuan/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipc/src/assuan/mod.rs b/ipc/src/assuan/mod.rs index 6bbab37f..be20b447 100644 --- a/ipc/src/assuan/mod.rs +++ b/ipc/src/assuan/mod.rs @@ -66,13 +66,16 @@ pub struct Client { done: bool, w: WriteState, } +assert_send_and_sync!(Client); enum WriteState { Ready(WriteHalf<IpcStream>), - Sending(Pin<Box<dyn Future<Output = Result<WriteHalf<IpcStream>, anyhow::Error>>>>), + Sending(Pin<Box<dyn Future<Output = Result<WriteHalf<IpcStream>, + anyhow::Error>> + Send + Sync>>), Transitioning, Dead, } +assert_send_and_sync!(WriteState); impl Client { /// Connects to the server. |