Adding method `send_channel_msg` to client::Session, to make it easier to write handlers
[?]
Jan 13, 2021, 9:41 AM
BRDS7STAKAIUHJ2ORB3HLPMQCXILWWOC5DPXKL6P2AT7CUSZD4OQCDependencies
- [2]
ASD7JVBEDo not read past the size of the buffer (after Tokio 0.3) - [3]
Y67GNDVBuse tokio::process::Command for proxy commands - [4]
KNLLUDOICorrect usage of `tokio::select!` - [5]
VYDCQWSFVersion 0.30.6 - [6]
634OYCNMTokio 0.3 - [7]
2WEO7OZLVersion updates: getting rid of anyhow + moving to Tokio 1.0 - [8]
CQSPFH4HVersion 0.30.4 - [9]
TFYJ3P2AVersion 0.30.8/0.19.4, and solving conflicts - [10]
ELRPPXSGFixing conflicts - [11]
7FRJYUI6Reboot because of a bad change - [12]
DJT33BQEVersion bump - [13]
E2SB74SVVersion 0.30.3 - [14]
PDTFLA4YVersion 0.30.7
Change contents
- edit in thrussh/src/client/proxy.rs at line 5
use std::process::Command; - edit in thrussh/src/client/proxy.rs at line 9
use tokio::process::Command; - replacement in thrussh/src/client/proxy.rs at line 13
Child(tokio::process::Child),Child(std::process::Child), - replacement in thrussh/src/client/proxy.rs at line 36
Stream::Child(ref mut c) => Pin::new(c.stdout.as_mut().unwrap()).poll_read(cx, buf),Stream::Child(ref mut c) => {let n = c.stdout.as_mut().unwrap().read(buf.initialize_unfilled())?;buf.advance(n);Poll::Ready(Ok(()))} - replacement in thrussh/src/client/proxy.rs at line 53
Stream::Child(ref mut c) => Pin::new(c.stdin.as_mut().unwrap()).poll_write(cx, buf),Stream::Child(ref mut c) => Poll::Ready(c.stdin.as_mut().unwrap().write(buf)), - replacement in thrussh/src/client/proxy.rs at line 63
Stream::Child(ref mut c) => Pin::new(c.stdin.as_mut().unwrap()).poll_flush(cx),Stream::Child(_) => Poll::Ready(Ok(())), - replacement in thrussh/src/client/proxy.rs at line 73
Stream::Child(ref mut c) => Pin::new(c.stdin.as_mut().unwrap()).poll_shutdown(cx),Stream::Child(_) => Poll::Ready(Ok(())), - edit in thrussh/src/client/mod.rs at line 978
} - edit in thrussh/src/client/mod.rs at line 979
impl Session { - edit in thrussh/src/client/mod.rs at line 1027
}/// Send a `ChannelMsg` from the background handler to the client.pub fn send_channel_msg(&self, channel: ChannelId, msg: ChannelMsg) -> bool {if let Some(chan) = self.channels.get(&channel) {chan.send(OpenChannelMsg::Msg(msg)).unwrap_or(());true} else {false} - replacement in thrussh/Cargo.toml at line 5
version = "0.32.2"version = "0.32.4"