Skip to main content

videocall_cli/consumers/
dead_synk.rs

1/*
2 * Copyright 2025 Security Union LLC
3 *
4 * Licensed under either of
5 *
6 * * Apache License, Version 2.0
7 *   (http://www.apache.org/licenses/LICENSE-2.0)
8 * * MIT license
9 *   (http://opensource.org/licenses/MIT)
10 *
11 * at your option.
12 *
13 * Unless you explicitly state otherwise, any contribution intentionally
14 * submitted for inclusion in the work by you, as defined in the Apache-2.0
15 * license, shall be dual licensed as above, without any additional terms or
16 * conditions.
17 */
18
19use crate::cli_args::Stream;
20
21use super::camera_synk::CameraSynk;
22
23pub struct DeadSynk {}
24
25impl DeadSynk {
26    pub fn new(_opts: Stream) -> DeadSynk {
27        DeadSynk {}
28    }
29}
30
31impl CameraSynk for DeadSynk {
32    async fn connect(&mut self) -> anyhow::Result<()> {
33        Ok(())
34    }
35
36    async fn send_packet(&self, _data: Vec<u8>) -> anyhow::Result<()> {
37        Ok(())
38    }
39}