Mountain/Vine/Server/Notification/OutputChannelClear.rs
1#![allow(non_snake_case)]
2//! Cocoon → Mountain `outputChannel.clear` notification (twin of
3//! `output.clear`).
4
5use serde_json::Value;
6use tauri::Emitter;
7
8use crate::{Vine::Server::MountainVinegRPCService::MountainVinegRPCService, dev_log};
9
10pub async fn OutputChannelClear(Service:&MountainVinegRPCService, Parameter:&Value) {
11 let _ = Service.ApplicationHandle().emit("sky://output/clear", Parameter);
12
13 dev_log!(
14 "grpc",
15 "[OutputChannel] clear channel={}",
16 Parameter.get("channel").and_then(Value::as_str).unwrap_or("?")
17 );
18}