MCPcopy Create free account
hub / github.com/GCWing/BitFun / close

Method close

src/crates/services/services-integrations/src/remote_ssh/manager.rs:2499–2510  ·  view source on GitHub ↗

Close PTY session

(self)

Source from the content-addressed store, hash-verified

2497
2498 /// Close PTY session
2499 pub async fn close(self) -> anyhow::Result<()> {
2500 let channel = self.channel.lock().await;
2501 channel
2502 .eof()
2503 .await
2504 .map_err(|e| anyhow!("Failed to close PTY: {}", e))?;
2505 channel
2506 .close()
2507 .await
2508 .map_err(|e| anyhow!("Failed to close channel: {}", e))?;
2509 Ok(())
2510 }
2511
2512 /// Get connection ID
2513 pub fn connection_id(&self) -> &str {

Callers 15

run_testsFunction · 0.45
disconnectMethod · 0.45
index-RWXIAc4-.jsFile · 0.45
disconnectMethod · 0.45
BrowserSceneFunction · 0.45
BrowserPanelFunction · 0.45
useWindowControlsFunction · 0.45

Calls

no outgoing calls

Tested by 1

run_testsFunction · 0.36