diff options
author | Alex Auvolat <alex@adnab.me> | 2022-07-22 10:55:37 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-07-22 10:55:37 +0200 |
commit | c358fe3c92da8a8454e461484737efe2a14dfd73 (patch) | |
tree | db540e2e25a96585686826ef66f3552decee96df /src/util.rs | |
parent | 4934ed726d51913afd97ca937d0ece39ef8b7371 (diff) | |
download | netapp-c358fe3c92da8a8454e461484737efe2a14dfd73.tar.gz netapp-c358fe3c92da8a8454e461484737efe2a14dfd73.zip |
Hide streaming versions as much as possible
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs index e7ecea8..01c392c 100644 --- a/src/util.rs +++ b/src/util.rs @@ -24,7 +24,7 @@ pub type NetworkKey = sodiumoxide::crypto::auth::Key; /// /// Error code 255 means the stream was cut before its end. Other codes have no predefined /// meaning, it's up to your application to define their semantic. -pub type ByteStream = Pin<Box<dyn Stream<Item = Packet> + Send>>; +pub type ByteStream = Pin<Box<dyn Stream<Item = Packet> + Send + Sync>>; pub type Packet = Result<Bytes, u8>; |