Skip to main content

CaptureManager

Struct CaptureManager 

Source
pub struct CaptureManager<B>{ /* 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>

Source

pub fn from_backend(inner: B) -> CaptureManager<B>

Source

pub fn open( request: CaptureRequest, ) -> Result<CaptureManager<B>, CapabilityError>

Source

pub fn open_single( target: CaptureTarget, ) -> Result<CaptureManager<B>, CapabilityError>

Source

pub fn open_with_options( request: CaptureRequest, overflow: Overflow, timing: TimingRequirement, ) -> Result<CaptureManager<B>, CapabilityError>

Source

pub fn into_inner(self) -> B

Source

pub fn backend(&self) -> &B

Source

pub fn backend_mut(&mut self) -> &mut B

Source

pub fn plan(&self) -> &CapturePlanReport

Source

pub fn selected_backend(&self) -> BackendId

Source

pub fn is_software_mix(&self) -> bool

Source

pub fn working_format(&self) -> Option<&Arc<Format>>

Source

pub fn output_format(&self) -> Option<&Arc<Format>>

Source

pub fn targets(&self) -> &[CaptureTarget]

Source

pub fn input_handles(&self) -> &[InputStatusHandle]

Source

pub fn membership_descriptor(&self) -> Option<MembershipDescriptor>

Source

pub fn last_block_metadata(&self) -> Option<MixedBlockMetadata>

Source

pub fn session_id(&self) -> u64

Source

pub fn segment_id(&self) -> u64

Source

pub fn on_format_change(&self) -> OnFormatChange

Source

pub fn route_guard(&self) -> Option<&RouteRollbackGuard>

Source

pub fn update_targets( &mut self, new_targets: Vec<CaptureTarget>, ) -> Result<u64, CapabilityError>

Source

pub fn notify_default_device_changed( &mut self, new_device_id: Option<&str>, ) -> Result<bool, CapabilityError>

Source

pub fn notify_default_input_changed( &mut self, new_device_id: Option<&str>, ) -> Result<bool, CapabilityError>

Source

pub fn reopen_relaunched_target( &mut self, target_index: usize, new_pid: u32, ) -> Result<(), CapabilityError>

Source

pub fn default_cancel(&self) -> Cancellation

Source

pub fn read( &mut self, frames: usize, timeout: Duration, ) -> Result<ReadResult, ReadError>

Source

pub fn read_with_cancel( &mut self, frames: usize, timeout: Duration, cancel: Cancellation, ) -> Result<ReadResult, ReadError>

Source

pub fn read_into( &mut self, destination: &mut [u8], frames: usize, timeout: Duration, ) -> Result<ReadResult, ReadError>

Source

pub fn read_into_with_cancel( &mut self, destination: &mut [u8], frames: usize, timeout: Duration, cancel: Cancellation, ) -> Result<ReadResult, ReadError>

Source

pub fn stop(&mut self, mode: Stop)

Source

pub fn wait_cleanup(&mut self, timeout: Duration) -> bool

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.