pub mod audio; #[cfg(target_os = "linux")] pub mod audio_capture; #[cfg(target_os = "windows")] #[path = "audio_capture_windows.rs"] pub mod audio_capture; #[cfg(any(target_os = "linux", target_os = "windows"))] pub mod camera; #[cfg(target_os = "linux")] pub mod capture; #[cfg(target_os = "windows")] #[path = "capture_windows.rs"] pub mod capture; pub mod congestion; pub mod encode; pub mod fake; pub mod frame; pub mod pacer; pub mod reassembly; pub mod send; #[cfg(not(any(target_os = "linux", target_os = "windows")))] mod unsupported; pub mod watch; #[cfg(not(any(target_os = "linux", target_os = "windows")))] pub use unsupported::{audio_capture, camera, capture}; pub mod session { pub use super::send::Sharing; pub use super::watch::{Tick, WatchQuality, Watching}; pub use common::stats::{LayerStats, ShareSample, WatchStats}; } #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] pub enum Target { Screen(usize), Window(usize), } pub struct Source { pub target: Target, pub name: String, pub preview: Option, }