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

Function remote_connect_stop

src/apps/desktop/src/api/remote_connect_api.rs:546–553  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

544
545#[tauri::command]
546pub async fn remote_connect_stop() -> Result<(), String> {
547 let holder = get_service_holder();
548 let guard = holder.read().await;
549 if let Some(service) = guard.as_ref() {
550 service.stop_relay().await;
551 }
552 Ok(())
553}
554
555#[tauri::command]
556pub async fn remote_connect_stop_bot() -> Result<(), String> {

Callers

nothing calls this directly

Calls 3

get_service_holderFunction · 0.85
stop_relayMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected