MCPcopy Create free account
hub / github.com/Recordscript/recordscript / emit_all

Function emit_all

src-tauri/src/util.rs:27–37  ·  view source on GitHub ↗
(
    window: &Window,
    channel: impl AsRef<str>,
    payload: S,
)

Source from the content-addressed store, hash-verified

25}
26
27pub fn emit_all<S: std::fmt::Debug + serde::Serialize + Clone + Send + 'static>(
28 window: &Window,
29 channel: impl AsRef<str>,
30 payload: S,
31) {
32 println!("Emitting {payload:?}");
33
34 let channel = channel.as_ref().to_owned();
35
36 window.emit(channel.as_str(), payload).unwrap();
37}
38
39pub fn gstreamer_loop(
40 pipeline: gst::Pipeline,

Callers 3

start_transcriptionFunction · 0.85
mainFunction · 0.85
transcribeMethod · 0.85

Calls 1

as_strMethod · 0.80

Tested by

no test coverage detected