(
&mut self,
channel: ChannelId,
data: &[u8],
session: &mut Session,
)
| 431 | } |
| 432 | |
| 433 | async fn exec_request( |
| 434 | &mut self, |
| 435 | channel: ChannelId, |
| 436 | data: &[u8], |
| 437 | session: &mut Session, |
| 438 | ) -> Result<(), Self::Error> { |
| 439 | session.channel_success(channel)?; |
| 440 | let command = String::from_utf8_lossy(data).trim().to_string(); |
| 441 | if command.is_empty() { |
| 442 | return Ok(()); |
| 443 | } |
| 444 | self.start_shell(channel, session.handle(), Some(command))?; |
| 445 | Ok(()) |
| 446 | } |
| 447 | |
| 448 | async fn subsystem_request( |
| 449 | &mut self, |
nothing calls this directly
no test coverage detected