let stream = match address.connect().wait(wait_scope, (&mut event_port)) {
Ok(s) => s,
Err(e) => panic!("Error connecting to addr: {:?}", e),
};
let network = Box::new(capnp_rpc::twoparty::VatNetwork::new(
stream.clone(),
stream,
rpc_twoparty_capnp::Side::Client,
Default::default(),
));
这是代码体。我正在使用 capnp::rpc 版本 0.8.3。“ std::io::Read SocketStream`std::io::Write
没有实现该特征”我想我需要以某种方式将std::io::Read和Write添加到我创建的流中。我怎样才能做到这一点?SocketStream " "the trait
is not implemented for