implement exec_request()
This commit is contained in:
parent
91d2eb3b51
commit
ed9bd4c8dd
|
@ -110,6 +110,13 @@ impl server::Handler for Handler {
|
|||
self.finished(session)
|
||||
}
|
||||
|
||||
fn exec_request(mut self, _channel: ChannelId, data: &[u8], session: Session) -> Self::FutureUnit {
|
||||
writeln!(self.file, "Execute: {}\n", String::from_utf8_lossy(data))
|
||||
.unwrap();
|
||||
|
||||
self.finished(session)
|
||||
}
|
||||
|
||||
fn auth_password(mut self, user: &str, password: &str) -> Self::FutureAuth {
|
||||
writeln!(self.file, "Authenticated as {} with {}\n", user, password)
|
||||
.unwrap();
|
||||
|
|
Loading…
Reference in New Issue