diff options
author | trinity-1686a <trinity@deuxfleurs.fr> | 2022-06-19 18:42:27 +0200 |
---|---|---|
committer | trinity-1686a <trinity@deuxfleurs.fr> | 2022-06-19 18:42:27 +0200 |
commit | 0fec85b47a1bc679d2684994bfae6ef0fe7d4911 (patch) | |
tree | 4d9a2ecb8d2affe9bae894a3d00053cedfa597ec /src/util.rs | |
parent | 5d7541e13a4c3640f0dc8aead595b51775fc0ac8 (diff) | |
download | netapp-0fec85b47a1bc679d2684994bfae6ef0fe7d4911.tar.gz netapp-0fec85b47a1bc679d2684994bfae6ef0fe7d4911.zip |
start supporting sending error on stream
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 3ee0cb9..76d7ecf 100644 --- a/src/util.rs +++ b/src/util.rs @@ -27,7 +27,7 @@ pub type NetworkKey = sodiumoxide::crypto::auth::Key; /// /// The error code have no predefined meaning, it's up to you application to define their /// semantic. -pub type AssociatedStream = Pin<Box<dyn Stream<Item = Vec<u8>> + Send>>; +pub type AssociatedStream = Pin<Box<dyn Stream<Item = Result<Vec<u8>, u8>> + Send>>; /// Utility function: encodes any serializable value in MessagePack binary format /// using the RMP library. |