pub struct DiscoveryQuery {
pub os: PlatformOs,
pub backends: Backends,
pub dedupe: DiscoveryDedupe,
pub order: DiscoveryOrder,
pub active_only: bool,
pub include_non_audio: bool,
pub include_applications: bool,
pub include_processes: bool,
pub include_output_devices: bool,
pub include_input_devices: bool,
}Fields§
§os: PlatformOs§backends: Backends§dedupe: DiscoveryDedupe§order: DiscoveryOrder§active_only: bool§include_non_audio: bool§include_applications: bool§include_processes: bool§include_output_devices: bool§include_input_devices: boolImplementations§
Source§impl DiscoveryQuery
impl DiscoveryQuery
pub fn all_for_os(os: PlatformOs) -> DiscoveryQuery
pub fn from_filter_for_os( os: PlatformOs, filter: &DiscoveryFilter, ) -> DiscoveryQuery
pub fn as_filter(&self) -> DiscoveryFilter
pub fn matches_target(&self, target: &CaptureTarget) -> bool
pub fn with_backends(self, backends: Backends) -> DiscoveryQuery
pub fn with_dedupe(self, dedupe: DiscoveryDedupe) -> DiscoveryQuery
pub fn with_order(self, order: DiscoveryOrder) -> DiscoveryQuery
pub fn input_devices_for_os(os: PlatformOs) -> DiscoveryQuery
Trait Implementations§
Source§impl Clone for DiscoveryQuery
impl Clone for DiscoveryQuery
Source§fn clone(&self) -> DiscoveryQuery
fn clone(&self) -> DiscoveryQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscoveryQuery
impl Debug for DiscoveryQuery
Source§impl Default for DiscoveryQuery
impl Default for DiscoveryQuery
Source§fn default() -> DiscoveryQuery
fn default() -> DiscoveryQuery
Returns the “default value” for a type. Read more
Source§impl PartialEq for DiscoveryQuery
impl PartialEq for DiscoveryQuery
impl StructuralPartialEq for DiscoveryQuery
Auto Trait Implementations§
impl Freeze for DiscoveryQuery
impl RefUnwindSafe for DiscoveryQuery
impl Send for DiscoveryQuery
impl Sync for DiscoveryQuery
impl Unpin for DiscoveryQuery
impl UnsafeUnpin for DiscoveryQuery
impl UnwindSafe for DiscoveryQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more