Merge pull request #20 from Trivernis/develop

Add more restritions to protocol trait to be Send + Sync
pull/24/head
Julius Riegel 3 years ago committed by GitHub
commit 506be4652b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
Cargo.lock generated

@ -511,7 +511,7 @@ dependencies = [
[[package]]
name = "rmp-ipc"
version = "0.9.0"
version = "0.9.1"
dependencies = [
"async-trait",
"byteorder",

@ -1,6 +1,6 @@
[package]
name = "rmp-ipc"
version = "0.9.0"
version = "0.9.1"
authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018"
readme = "README.md"

@ -11,8 +11,8 @@ use tokio::io::{AsyncRead, AsyncWrite};
#[async_trait]
pub trait AsyncStreamProtocolListener: Sized + Send + Sync {
type AddressType: Clone + Debug + Send + Sync;
type RemoteAddressType: Debug;
type Stream: 'static + AsyncProtocolStream<AddressType = Self::AddressType>;
type RemoteAddressType: Debug + Send + Sync;
type Stream: 'static + AsyncProtocolStream<AddressType = Self::AddressType> + Send + Sync;
async fn protocol_bind(address: Self::AddressType) -> IPCResult<Self>;

Loading…
Cancel
Save