pub struct PlatformDiscovery { /* private fields */ }Expand description
One-shot calls never spawn background watcher threads.
Implementations§
Source§impl PlatformDiscovery
impl PlatformDiscovery
pub fn stop_watcher(&self)
Trait Implementations§
Source§impl Clone for PlatformDiscovery
impl Clone for PlatformDiscovery
Source§impl Default for PlatformDiscovery
impl Default for PlatformDiscovery
Source§impl DiscoveryBackend for PlatformDiscovery
impl DiscoveryBackend for PlatformDiscovery
fn new() -> Self
fn with_backends(backends: Backends) -> Result<Self, CapabilityError>
fn service(&self) -> &DiscoveryService
fn backends(&self) -> &Backends
fn is_watcher_running(&self) -> bool
fn refresh_once(&self) -> Result<u64, CapabilityError>
fn default_output_device_id(&self) -> Result<Option<Arc<str>>, CapabilityError>
fn default_input_device_id(&self) -> Result<Option<Arc<str>>, CapabilityError>
fn process( &self, pid: u32, scope: ProcessScope, on_root_exit: OnRootExit, ) -> Result<CaptureTarget, CapabilityError>
fn discover_query( &self, query: &DiscoveryQuery, ) -> Result<TargetCatalog, CapabilityError>
fn subscribe( &self, filter: DiscoveryFilter, max_discovery_queue: usize, ) -> Result<DiscoverySubscription, CapabilityError>
fn subscribe_query( &self, query: DiscoveryQuery, max_discovery_queue: usize, ) -> Result<DiscoverySubscription, CapabilityError>
fn discover( &self, filter: DiscoveryFilter, ) -> Result<TargetSnapshot, CapabilityError>
fn applications( &self, active_only: bool, include_non_audio: bool, ) -> Result<Vec<CaptureTarget>, CapabilityError>
fn processes( &self, active_only: bool, include_non_audio: bool, ) -> Result<Vec<CaptureTarget>, CapabilityError>
fn output_devices(&self) -> Result<Vec<CaptureTarget>, CapabilityError>
fn input_devices(&self) -> Result<Vec<CaptureTarget>, CapabilityError>
fn find_app( &self, query: &str, scope: ProcessScope, on_root_exit: OnRootExit, ) -> Result<CaptureTarget, FindAppError>
Auto Trait Implementations§
impl Freeze for PlatformDiscovery
impl RefUnwindSafe for PlatformDiscovery
impl Send for PlatformDiscovery
impl Sync for PlatformDiscovery
impl Unpin for PlatformDiscovery
impl UnsafeUnpin for PlatformDiscovery
impl UnwindSafe for PlatformDiscovery
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