#[non_exhaustive]pub struct SystemExclusionCapabilities {
pub availability: Availability,
pub backend: BackendKind,
pub scope: PidScope,
pub max_distinct_pids: Option<u32>,
pub device_selection: DeviceSelectionBehavior,
}Expand description
Support for system capture with exclude_self or exclude_pids.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.availability: AvailabilityAvailability of the exclusion backend.
backend: BackendKindImplementing backend.
scope: PidScopeMeaning of each excluded PID.
max_distinct_pids: Option<u32>Distinct PID limit, including implicit self; None means no count limit.
device_selection: DeviceSelectionBehaviorWhether output-device selection is honored with exclusions.
Implementations§
Source§impl SystemExclusionCapabilities
impl SystemExclusionCapabilities
Sourcepub fn new(
availability: Availability,
backend: BackendKind,
scope: PidScope,
max_distinct_pids: Option<u32>,
device_selection: DeviceSelectionBehavior,
) -> Self
pub fn new( availability: Availability, backend: BackendKind, scope: PidScope, max_distinct_pids: Option<u32>, device_selection: DeviceSelectionBehavior, ) -> Self
Construct a system exclusion description.
Trait Implementations§
Source§impl Clone for SystemExclusionCapabilities
impl Clone for SystemExclusionCapabilities
Source§impl Debug for SystemExclusionCapabilities
impl Debug for SystemExclusionCapabilities
impl Eq for SystemExclusionCapabilities
impl StructuralPartialEq for SystemExclusionCapabilities
Auto Trait Implementations§
impl Freeze for SystemExclusionCapabilities
impl RefUnwindSafe for SystemExclusionCapabilities
impl Send for SystemExclusionCapabilities
impl Sync for SystemExclusionCapabilities
impl Unpin for SystemExclusionCapabilities
impl UnsafeUnpin for SystemExclusionCapabilities
impl UnwindSafe for SystemExclusionCapabilities
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