pub struct CaptureManager<B>where
B: CaptureManagerBackend,{ /* private fields */ }Expand description
Zero-cost static-dispatch core CaptureManager<B> entity (0 vtable overhead, 0 steady-state
heap allocations on read_into).
Implementations§
Source§impl<B> CaptureManager<B>where
B: CaptureManagerBackend,
impl<B> CaptureManager<B>where
B: CaptureManagerBackend,
pub fn from_backend(inner: B) -> CaptureManager<B>
pub fn open( request: CaptureRequest, ) -> Result<CaptureManager<B>, CapabilityError>
pub fn open_single( target: CaptureTarget, ) -> Result<CaptureManager<B>, CapabilityError>
pub fn open_with_options( request: CaptureRequest, overflow: Overflow, timing: TimingRequirement, ) -> Result<CaptureManager<B>, CapabilityError>
pub fn into_inner(self) -> B
pub fn backend(&self) -> &B
pub fn backend_mut(&mut self) -> &mut B
pub fn plan(&self) -> &CapturePlanReport
pub fn selected_backend(&self) -> BackendId
pub fn is_software_mix(&self) -> bool
pub fn working_format(&self) -> Option<&Arc<Format>>
pub fn output_format(&self) -> Option<&Arc<Format>>
pub fn targets(&self) -> &[CaptureTarget]
pub fn input_handles(&self) -> &[InputStatusHandle]
pub fn membership_descriptor(&self) -> Option<MembershipDescriptor>
pub fn last_block_metadata(&self) -> Option<MixedBlockMetadata>
pub fn session_id(&self) -> u64
pub fn segment_id(&self) -> u64
pub fn on_format_change(&self) -> OnFormatChange
pub fn route_guard(&self) -> Option<&RouteRollbackGuard>
pub fn update_targets( &mut self, new_targets: Vec<CaptureTarget>, ) -> Result<u64, CapabilityError>
pub fn notify_default_device_changed( &mut self, new_device_id: Option<&str>, ) -> Result<bool, CapabilityError>
pub fn notify_default_input_changed( &mut self, new_device_id: Option<&str>, ) -> Result<bool, CapabilityError>
pub fn reopen_relaunched_target( &mut self, target_index: usize, new_pid: u32, ) -> Result<(), CapabilityError>
pub fn default_cancel(&self) -> Cancellation
pub fn read( &mut self, frames: usize, timeout: Duration, ) -> Result<ReadResult, ReadError>
pub fn read_with_cancel( &mut self, frames: usize, timeout: Duration, cancel: Cancellation, ) -> Result<ReadResult, ReadError>
pub fn read_into( &mut self, destination: &mut [u8], frames: usize, timeout: Duration, ) -> Result<ReadResult, ReadError>
pub fn read_into_with_cancel( &mut self, destination: &mut [u8], frames: usize, timeout: Duration, cancel: Cancellation, ) -> Result<ReadResult, ReadError>
pub fn stop(&mut self, mode: Stop)
pub fn wait_cleanup(&mut self, timeout: Duration) -> bool
pub fn resources_done(&self) -> bool
Auto Trait Implementations§
impl<B> Freeze for CaptureManager<B>where
B: Freeze,
impl<B> RefUnwindSafe for CaptureManager<B>where
B: RefUnwindSafe,
impl<B> Send for CaptureManager<B>
impl<B> Sync for CaptureManager<B>where
B: Sync,
impl<B> Unpin for CaptureManager<B>where
B: Unpin,
impl<B> UnsafeUnpin for CaptureManager<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for CaptureManager<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