MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / channel_open_session

Method channel_open_session

crates/openshell-supervisor-process/src/ssh.rs:268–275  ·  view source on GitHub ↗
(
        &mut self,
        channel: russh::Channel<russh::server::Msg>,
        _session: &mut Session,
    )

Source from the content-addressed store, hash-verified

266 }
267
268 async fn channel_open_session(
269 &mut self,
270 channel: russh::Channel<russh::server::Msg>,
271 _session: &mut Session,
272 ) -> Result<bool, Self::Error> {
273 self.channels.insert(channel.id(), ChannelState::default());
274 Ok(true)
275 }
276
277 /// Clean up per-channel state when the channel is closed.
278 ///

Callers 2

run_exec_with_russhFunction · 0.80

Calls 1

idMethod · 0.45

Tested by

no test coverage detected