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

Function ssh_disconnect

src/apps/desktop/src/api/ssh_api.rs:146–155  ·  view source on GitHub ↗
(
    state: State<'_, AppState>,
    connection_id: String,
)

Source from the content-addressed store, hash-verified

144
145#[tauri::command]
146pub async fn ssh_disconnect(
147 state: State<'_, AppState>,
148 connection_id: String,
149) -> Result<(), String> {
150 let manager = state.get_ssh_manager_async().await?;
151 manager
152 .disconnect(&connection_id)
153 .await
154 .map_err(|e| e.to_string())
155}
156
157#[tauri::command]
158pub async fn ssh_disconnect_all(state: State<'_, AppState>) -> Result<(), String> {

Callers

nothing calls this directly

Calls 2

get_ssh_manager_asyncMethod · 0.80
disconnectMethod · 0.65

Tested by

no test coverage detected