From: Ian Jackson Date: Mon, 31 May 2021 21:16:21 +0000 (+0100) Subject: mgmtchannels: Make ClientMgmtChannel's read be Send too X-Git-Tag: otter-0.7.0~176 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d1ab2c4276e8e4f593bd70d58f8ce75841bed509;p=otter.git mgmtchannels: Make ClientMgmtChannel's read be Send too We are about to need this Signed-off-by: Ian Jackson --- diff --git a/src/mgmtchannel.rs b/src/mgmtchannel.rs index 772f0990..582949c6 100644 --- a/src/mgmtchannel.rs +++ b/src/mgmtchannel.rs @@ -47,7 +47,7 @@ impl Debug for MgmtChannel where R: Read, W: Write { } pub type ClientMgmtChannel = MgmtChannel< - Box, + Box, Box, >; @@ -63,7 +63,7 @@ impl ClientMgmtChannel { } pub fn new_boxed(read: R, write: W) -> Self - where R: Read + 'static, + where R: Read + Send + 'static, W: Write + Send + 'static { MgmtChannel::new_raw(Box::new(read), Box::new(write)) }