pub trait CaptureManagerBackend: Sized + Send {
Show 28 methods
// Required methods
fn open_with_options(
request: CaptureRequest,
overflow: Overflow,
timing: TimingRequirement,
) -> Result<Self, CapabilityError>;
fn plan(&self) -> &CapturePlanReport;
fn selected_backend(&self) -> BackendId;
fn is_software_mix(&self) -> bool;
fn working_format(&self) -> Option<&Arc<Format>>;
fn output_format(&self) -> Option<&Arc<Format>>;
fn targets(&self) -> &[CaptureTarget];
fn input_handles(&self) -> &[InputStatusHandle];
fn membership_descriptor(&self) -> Option<MembershipDescriptor>;
fn last_block_metadata(&self) -> Option<MixedBlockMetadata>;
fn session_id(&self) -> u64;
fn segment_id(&self) -> u64;
fn on_format_change(&self) -> OnFormatChange;
fn route_guard(&self) -> Option<&RouteRollbackGuard>;
fn update_targets(
&mut self,
new_targets: Vec<CaptureTarget>,
) -> Result<u64, CapabilityError>;
fn notify_default_device_changed(
&mut self,
new_device_id: Option<&str>,
) -> Result<bool, CapabilityError>;
fn notify_default_input_changed(
&mut self,
new_device_id: Option<&str>,
) -> Result<bool, CapabilityError>;
fn reopen_relaunched_target(
&mut self,
target_index: usize,
new_pid: u32,
) -> Result<(), CapabilityError>;
fn default_cancel(&self) -> Cancellation;
fn read_with_cancel(
&mut self,
frames: usize,
timeout: Duration,
cancel: Cancellation,
) -> Result<ReadResult, ReadError>;
fn read_into_with_cancel(
&mut self,
destination: &mut [u8],
frames: usize,
timeout: Duration,
cancel: Cancellation,
) -> Result<ReadResult, ReadError>;
fn stop(&mut self, mode: Stop);
fn wait_cleanup(&mut self, timeout: Duration) -> bool;
fn resources_done(&self) -> bool;
// Provided methods
fn open(request: CaptureRequest) -> Result<Self, CapabilityError> { ... }
fn open_single(target: CaptureTarget) -> Result<Self, CapabilityError> { ... }
fn read(
&mut self,
frames: usize,
timeout: Duration,
) -> Result<ReadResult, ReadError> { ... }
fn read_into(
&mut self,
destination: &mut [u8],
frames: usize,
timeout: Duration,
) -> Result<ReadResult, ReadError> { ... }
}Expand description
Plans, monitors, mixes, converts, reconfigures, and reopens capture sessions.
Required Methods§
fn open_with_options( request: CaptureRequest, overflow: Overflow, timing: TimingRequirement, ) -> Result<Self, CapabilityError>
fn plan(&self) -> &CapturePlanReport
fn selected_backend(&self) -> BackendId
fn is_software_mix(&self) -> bool
fn working_format(&self) -> Option<&Arc<Format>>
fn output_format(&self) -> Option<&Arc<Format>>
fn targets(&self) -> &[CaptureTarget]
fn input_handles(&self) -> &[InputStatusHandle]
fn membership_descriptor(&self) -> Option<MembershipDescriptor>
fn last_block_metadata(&self) -> Option<MixedBlockMetadata>
fn session_id(&self) -> u64
fn segment_id(&self) -> u64
fn on_format_change(&self) -> OnFormatChange
fn route_guard(&self) -> Option<&RouteRollbackGuard>
fn update_targets( &mut self, new_targets: Vec<CaptureTarget>, ) -> Result<u64, CapabilityError>
fn notify_default_device_changed( &mut self, new_device_id: Option<&str>, ) -> Result<bool, CapabilityError>
fn notify_default_input_changed( &mut self, new_device_id: Option<&str>, ) -> Result<bool, CapabilityError>
fn reopen_relaunched_target( &mut self, target_index: usize, new_pid: u32, ) -> Result<(), CapabilityError>
fn default_cancel(&self) -> Cancellation
fn read_with_cancel( &mut self, frames: usize, timeout: Duration, cancel: Cancellation, ) -> Result<ReadResult, ReadError>
fn read_into_with_cancel( &mut self, destination: &mut [u8], frames: usize, timeout: Duration, cancel: Cancellation, ) -> Result<ReadResult, ReadError>
fn stop(&mut self, mode: Stop)
fn wait_cleanup(&mut self, timeout: Duration) -> bool
fn resources_done(&self) -> bool
Provided Methods§
fn open(request: CaptureRequest) -> Result<Self, CapabilityError>
fn open_single(target: CaptureTarget) -> Result<Self, CapabilityError>
fn read( &mut self, frames: usize, timeout: Duration, ) -> Result<ReadResult, ReadError>
fn read_into( &mut self, destination: &mut [u8], frames: usize, timeout: Duration, ) -> Result<ReadResult, ReadError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".