pub struct CaptureRequest { /* private fields */ }Implementations§
Source§impl CaptureRequest
impl CaptureRequest
pub fn new(targets: Vec<CaptureTarget>) -> CaptureRequest
pub fn single(target: CaptureTarget) -> CaptureRequest
pub fn targets(&self) -> &[CaptureTarget]
pub fn tree_strategy(&self) -> ProcessTreeRange
pub fn combine_mode(&self) -> CombineMode
pub fn input_conversion(&self) -> InputConversionPolicy
pub fn backends(&self) -> &Backends
pub fn output_converter(&self) -> Option<&OutputConverterConfig>
pub fn on_format_change(&self) -> OnFormatChange
pub fn mixer_config(&self) -> &MixerConfig
pub fn budgets(&self) -> &AggregateManagerBudgets
pub fn allow_reroute(&self) -> bool
pub fn require_precise_timing(&self) -> bool
pub fn permission_policy(&self) -> PermissionPolicy
pub fn with_targets(self, targets: Vec<CaptureTarget>) -> CaptureRequest
pub fn with_tree_strategy( self, tree_strategy: ProcessTreeRange, ) -> CaptureRequest
pub fn with_combine_mode(self, combine_mode: CombineMode) -> CaptureRequest
pub fn with_input_conversion( self, policy: InputConversionPolicy, ) -> CaptureRequest
pub fn with_backends(self, backends: Backends) -> CaptureRequest
pub fn with_output_converter( self, output_converter: Option<OutputConverterConfig>, ) -> CaptureRequest
pub fn with_on_format_change( self, on_format_change: OnFormatChange, ) -> CaptureRequest
pub fn with_mixer_config(self, mixer_config: MixerConfig) -> CaptureRequest
pub fn with_budgets(self, budgets: AggregateManagerBudgets) -> CaptureRequest
pub fn with_allow_reroute(self, allow_reroute: bool) -> CaptureRequest
pub fn with_require_precise_timing( self, require_precise_timing: bool, ) -> CaptureRequest
pub fn with_permission_policy( self, permission_policy: PermissionPolicy, ) -> CaptureRequest
pub fn required_permission_kinds_for_os( &self, os: PlatformOs, ) -> Result<BTreeSet<PermissionKind>, PlanError>
pub fn required_permission_kinds( &self, ) -> Result<BTreeSet<PermissionKind>, PlanError>
Sourcepub fn inspect_for_os(
&self,
os: PlatformOs,
) -> Result<CapturePlanReport, PlanError>
pub fn inspect_for_os( &self, os: PlatformOs, ) -> Result<CapturePlanReport, PlanError>
Inspects the capture plan without side effects for the specified OS.
pub fn inspect(&self) -> Result<CapturePlanReport, PlanError>
Sourcepub fn resolve_plan_for_os_with_readiness<F>(
&self,
os: PlatformOs,
check_readiness: F,
) -> Result<CapturePlanReport, PlanError>
pub fn resolve_plan_for_os_with_readiness<F>( &self, os: PlatformOs, check_readiness: F, ) -> Result<CapturePlanReport, PlanError>
Resolves a capture plan using the supplied backend readiness check.
Sourcepub fn resolve_plan_for_os_with_capability<F>(
&self,
os: PlatformOs,
check_readiness: F,
) -> Result<CapturePlanReport, CapabilityError>
pub fn resolve_plan_for_os_with_capability<F>( &self, os: PlatformOs, check_readiness: F, ) -> Result<CapturePlanReport, CapabilityError>
Resolves a capture plan while preserving structured capability errors.
Trait Implementations§
Source§impl Clone for CaptureRequest
impl Clone for CaptureRequest
Source§fn clone(&self) -> CaptureRequest
fn clone(&self) -> CaptureRequest
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 CaptureRequest
impl Debug for CaptureRequest
Source§impl PartialEq for CaptureRequest
impl PartialEq for CaptureRequest
impl StructuralPartialEq for CaptureRequest
Auto Trait Implementations§
impl Freeze for CaptureRequest
impl RefUnwindSafe for CaptureRequest
impl Send for CaptureRequest
impl Sync for CaptureRequest
impl Unpin for CaptureRequest
impl UnsafeUnpin for CaptureRequest
impl UnwindSafe for CaptureRequest
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