pub struct Discovery<B>where
B: DiscoveryBackend,{ /* private fields */ }Expand description
Static-dispatch discovery wrapper.
Implementations§
Source§impl<B> Discovery<B>where
B: DiscoveryBackend,
impl<B> Discovery<B>where
B: DiscoveryBackend,
pub fn new() -> Discovery<B>
pub fn from_backend(inner: B) -> Discovery<B>
pub fn with_backends( backends: Backends, ) -> Result<Discovery<B>, CapabilityError>
pub fn into_inner(self) -> B
pub fn backend(&self) -> &B
pub fn service(&self) -> &DiscoveryService
pub fn backends(&self) -> &Backends
pub fn is_watcher_running(&self) -> bool
pub fn refresh_once(&self) -> Result<u64, CapabilityError>
pub fn default_output_device_id( &self, ) -> Result<Option<Arc<str>>, CapabilityError>
pub fn default_input_device_id( &self, ) -> Result<Option<Arc<str>>, CapabilityError>
pub fn process( &self, pid: u32, scope: ProcessScope, on_root_exit: OnRootExit, ) -> Result<CaptureTarget, CapabilityError>
pub fn find_app( &self, query: &str, scope: ProcessScope, on_root_exit: OnRootExit, ) -> Result<CaptureTarget, FindAppError>
pub fn applications( &self, active_only: bool, include_non_audio: bool, ) -> Result<Vec<CaptureTarget>, CapabilityError>
pub fn processes( &self, active_only: bool, include_non_audio: bool, ) -> Result<Vec<CaptureTarget>, CapabilityError>
pub fn output_devices(&self) -> Result<Vec<CaptureTarget>, CapabilityError>
pub fn input_devices(&self) -> Result<Vec<CaptureTarget>, CapabilityError>
pub fn discover( &self, filter: DiscoveryFilter, ) -> Result<TargetSnapshot, CapabilityError>
pub fn discover_query( &self, query: &DiscoveryQuery, ) -> Result<TargetCatalog, CapabilityError>
pub fn subscribe( &self, filter: DiscoveryFilter, max_discovery_queue: usize, ) -> Result<DiscoverySubscription, CapabilityError>
pub fn subscribe_query( &self, query: DiscoveryQuery, max_discovery_queue: usize, ) -> Result<DiscoverySubscription, CapabilityError>
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Discovery<B>where
B: Freeze,
impl<B> RefUnwindSafe for Discovery<B>where
B: RefUnwindSafe,
impl<B> Send for Discovery<B>
impl<B> Sync for Discovery<B>
impl<B> Unpin for Discovery<B>where
B: Unpin,
impl<B> UnsafeUnpin for Discovery<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for Discovery<B>where
B: UnwindSafe,
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