(
window: &Window,
channel: impl AsRef<str>,
payload: S,
)
| 25 | } |
| 26 | |
| 27 | pub 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 | |
| 39 | pub fn gstreamer_loop( |
| 40 | pipeline: gst::Pipeline, |
no test coverage detected