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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//! Capability / permission probing — "what's supported, and is access
//! granted" without opening a full capture session. See
//! [ADR-0003](../adr/0003-capability-and-permission-probe.md).
/// Coarse capture-source kind for capability/permission queries.
///
/// Coarser than [`crate::CaptureSource`]/[`crate::AudioCaptureSource`] —
/// index/handle fields don't matter for "is this kind supported at all".
/// Why a [`DeviceKind`] is not available right now, when it isn't.
///
/// Three genuinely different conditions a caller should react to
/// differently: `NotImplemented` won't change without a code update;
/// `OsVersionTooOld` won't change without an OS update; `NoDeviceFound` can
/// change the moment hardware is plugged in.
/// Whether a [`DeviceKind`] is usable right now on this machine — a live
/// probe, not just "was a backend compiled for this OS" (see [`Unavailable`]
/// for the three distinct reasons it might not be).
/// OS-level consent state for a [`DeviceKind`] that may require permission.