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 dev_log!(
13 "grpc",
14 "[OutputChannel] clear channel={}",
15 Parameter.get("channel").and_then(Value::as_str).unwrap_or("?")
16 );
17}