1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Output type enumeration for stream handlers
//!
//! Defines the types of output that can be received from a capture stream.
use ;
/// Type of output received from a capture stream
///
/// Used to distinguish between different types of captured data
/// when implementing [`SCStreamOutputTrait`](crate::stream::output_trait::SCStreamOutputTrait).
///
/// # Examples
///
/// ```
/// use screencapturekit::stream::output_type::SCStreamOutputType;
///
/// fn handle_output(output_type: SCStreamOutputType) {
/// match output_type {
/// SCStreamOutputType::Screen => println!("Video frame"),
/// SCStreamOutputType::Audio => println!("Audio buffer"),
/// SCStreamOutputType::Microphone => println!("Microphone audio"),
/// }
/// }
/// ```