videocall_cli/consumers/camera_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
19pub trait CameraSynk {
20 fn connect(&mut self) -> impl std::future::Future<Output = anyhow::Result<()>> + Send;
21 fn send_packet(
22 &self,
23 data: Vec<u8>,
24 ) -> impl std::future::Future<Output = anyhow::Result<()>> + Send;
25}