pub struct CaptureTarget { /* private fields */ }Implementations§
Source§impl CaptureTarget
impl CaptureTarget
pub fn kind(&self) -> TargetKind
pub fn id(&self) -> &Arc<str> ⓘ
pub fn logical_id(&self) -> &str
pub fn pid(&self) -> Option<u32>
pub fn process_start_time(&self) -> Option<u64>
pub fn app_id(&self) -> Option<&Arc<str>>
pub fn device_id(&self) -> Option<&Arc<str>>
pub fn clean_device_id(&self) -> Option<&str>
pub fn name(&self) -> Option<&Arc<str>>
pub fn executable_path(&self) -> Option<&Arc<str>>
pub fn active_audio(&self) -> Option<bool>
pub fn scope(&self) -> ProcessScope
pub fn on_root_exit(&self) -> OnRootExit
pub fn default_device_mode(&self) -> DefaultDeviceMode
pub fn backend(&self) -> Option<BackendId>
pub fn available_backends(&self) -> &Arc<[BackendId]> ⓘ
pub fn gain(&self) -> f32
pub fn diagnostic_summary(&self, options: DiagnosticOptions) -> String
pub fn process( identity: ProcessIdentity, scope: ProcessScope, on_root_exit: OnRootExit, ) -> Result<CaptureTarget, PlanError>
pub fn application( identity: ProcessIdentity, app_id: Option<Arc<str>>, name: Option<Arc<str>>, executable_path: Option<Arc<str>>, scope: ProcessScope, on_root_exit: OnRootExit, ) -> Result<CaptureTarget, PlanError>
pub fn device( device_id: impl Into<Arc<str>>, ) -> Result<CaptureTarget, PlanError>
pub fn input_device( device_id: impl Into<Arc<str>>, ) -> Result<CaptureTarget, PlanError>
pub fn default_output(default_device_mode: DefaultDeviceMode) -> CaptureTarget
pub fn microphone(default_device_mode: DefaultDeviceMode) -> CaptureTarget
pub fn default_input(default_device_mode: DefaultDeviceMode) -> CaptureTarget
pub fn with_backend(self, backend: BackendId) -> CaptureTarget
pub fn with_optional_backend(self, backend: Option<BackendId>) -> CaptureTarget
pub fn with_available_backends( self, backends: impl Into<Arc<[BackendId]>>, ) -> CaptureTarget
pub fn with_scope(self, scope: ProcessScope) -> CaptureTarget
pub fn with_on_root_exit( self, on_root_exit: OnRootExit, ) -> Result<CaptureTarget, PlanError>
pub fn with_default_device_mode(self, mode: DefaultDeviceMode) -> CaptureTarget
pub fn with_name(self, name: Option<Arc<str>>) -> CaptureTarget
pub fn with_active_audio(self, active_audio: Option<bool>) -> CaptureTarget
pub fn with_process_identity( self, identity: ProcessIdentity, ) -> Result<CaptureTarget, PlanError>
Sourcepub fn resolve_pinned_endpoint(
&self,
default_output_id: Option<&str>,
default_input_id: Option<&str>,
) -> CaptureTarget
pub fn resolve_pinned_endpoint( &self, default_output_id: Option<&str>, default_input_id: Option<&str>, ) -> CaptureTarget
Resolve DefaultOutput(Pin) or DefaultInput(Pin) to a concrete Device / InputDevice
while preserving gain, backend, and available_backends invariants.
pub fn with_metadata( self, app_id: Option<Arc<str>>, name: Option<Arc<str>>, executable_path: Option<Arc<str>>, active_audio: Option<bool>, ) -> CaptureTarget
pub fn with_gain(self, gain: f32) -> Result<CaptureTarget, PlanError>
pub fn process_identity(&self) -> Option<ProcessIdentity>
pub fn lower_to_process(&self) -> Result<CaptureTarget, PlanError>
pub fn match_identity_key(&self) -> Option<u64>
pub fn validate(&self) -> Result<(), PlanError>
Trait Implementations§
Source§impl Clone for CaptureTarget
impl Clone for CaptureTarget
Source§fn clone(&self) -> CaptureTarget
fn clone(&self) -> CaptureTarget
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 CaptureTarget
impl Debug for CaptureTarget
Source§impl PartialEq for CaptureTarget
impl PartialEq for CaptureTarget
impl StructuralPartialEq for CaptureTarget
Auto Trait Implementations§
impl Freeze for CaptureTarget
impl RefUnwindSafe for CaptureTarget
impl Send for CaptureTarget
impl Sync for CaptureTarget
impl Unpin for CaptureTarget
impl UnsafeUnpin for CaptureTarget
impl UnwindSafe for CaptureTarget
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