Allow RpcClient to encapsulate arbitrarily many connections

This commit is contained in:
Max Brunsfeld
2021-06-15 14:12:42 -07:00
parent e88f33851e
commit 3db215418c
4 changed files with 119 additions and 83 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ use std::{convert::TryInto, io};
include!(concat!(env!("OUT_DIR"), "/zed.messages.rs"));
pub trait EnvelopedMessage: Sized {
pub trait EnvelopedMessage: Sized + Send + 'static {
fn into_envelope(self, id: u32, responding_to: Option<u32>) -> Envelope;
fn from_envelope(envelope: Envelope) -> Option<Self>;
}