Skip to content

Rust API — Traits, Structs & Enums

Click any trait, struct, or enum below to jump directly to its complete method and variant documentation in the mounted rustdoc bundle.


Trait Contract Summary
AudioStreamBackend A stream owns one backend capture session and never monitors process trees, dynamic membership, or default-device switches.
CaptureManagerBackend Plans, monitors, mixes, converts, reconfigures, and reopens capture sessions.
DefaultEndpointObserver Event-driven OS default endpoint observer, independent of reads.
DiscoveryBackend Lazy discovery with shared methods that honor self.backends().
OpenableStreamBackend A platform stream that can be opened directly from a single-point CaptureTarget.
PermissionsBackend Recording-permissions inspection and interactive request contract.
TopologyControllerBackend NativeTreeMix / SharedNativeGraphMix graph topology controller.

Struct Summary
AggregateManagerBudgets Re-exported AggregateManagerBudgets struct from capture-system-or-process-audio-core.
Backends Re-exported Backends struct from capture-system-or-process-audio-core.
Cancellation Re-exported Cancellation struct from capture-system-or-process-audio-core.
CapturePlanReport Re-exported CapturePlanReport struct from capture-system-or-process-audio-core.
CaptureRequest Re-exported CaptureRequest struct from capture-system-or-process-audio-core.
CaptureTarget Re-exported CaptureTarget struct from capture-system-or-process-audio-core.
Control Re-exported Control struct from capture-system-or-process-audio-core.
ControlHandle Re-exported ControlHandle struct from capture-system-or-process-audio-core.
DiscoveryEvent Re-exported DiscoveryEvent struct from capture-system-or-process-audio-core.
DiscoveryFilter Re-exported DiscoveryFilter struct from capture-system-or-process-audio-core.
DiscoveryQuery Re-exported DiscoveryQuery struct from capture-system-or-process-audio-core.
DiscoverySubscription Re-exported DiscoverySubscription struct from capture-system-or-process-audio-core.
Format Re-exported Format struct from capture-system-or-process-audio-core.
Header Re-exported Header struct from capture-system-or-process-audio-core.
InputStatusHandle Status-only diagnostic input handle. Exposes read-only per-input status and metrics without competing raw PCM read methods or tee buffers.
Losses Re-exported Losses struct from capture-system-or-process-audio-core.
MembershipDescriptor Re-exported MembershipDescriptor struct from capture-system-or-process-audio-core.
MixedBlockMetadata Re-exported MixedBlockMetadata struct from capture-system-or-process-audio-core.
MixerConfig Re-exported MixerConfig struct from capture-system-or-process-audio-core.
OutputConverterConfig Re-exported OutputConverterConfig struct from capture-system-or-process-audio-core.
OwnedRoute Ownership record for a single stream, node, or device route modified when allow_reroute = true.
PacketAnchor Re-exported PacketAnchor struct from capture-system-or-process-audio-core.
PermissionEntry Per-domain recording permission status entry inside PermissionReport.
PermissionReport Zero-heap-allocation permission report with entries ordered as [Microphone, SystemAudio, ScreenRecording].
ProcessIdentity Re-exported ProcessIdentity struct from capture-system-or-process-audio-core.
ProcessTreeRange Re-exported ProcessTreeRange struct from capture-system-or-process-audio-core.
ReadResult Re-exported ReadResult struct from capture-system-or-process-audio-core.
RouteRollbackGuard Cross-platform route-restoration guard enforcing non-disruptive capture by default (allow_reroute = false) and restoring only library-owned route/mute/sink changes on partial-open failure or teardown without overwriting concurrent user route moves.
SessionBoundary Re-exported SessionBoundary struct from capture-system-or-process-audio-core.
Slice Re-exported Slice struct from capture-system-or-process-audio-core.
Stamp Re-exported Stamp struct from capture-system-or-process-audio-core.
StartupCleanup Re-exported StartupCleanup struct from capture-system-or-process-audio-core.
StorageBudget Re-exported StorageBudget struct from capture-system-or-process-audio-core.
StorageLimits Re-exported StorageLimits struct from capture-system-or-process-audio-core.
TargetCatalog Re-exported TargetCatalog struct from capture-system-or-process-audio-core.
TargetPlan Re-exported TargetPlan struct from capture-system-or-process-audio-core.
TargetSnapshot Re-exported TargetSnapshot struct from capture-system-or-process-audio-core.

Enum Summary
BackendId Re-exported BackendId enum from capture-system-or-process-audio-core.
BoundaryKind Re-exported BoundaryKind enum from capture-system-or-process-audio-core.
ByteOrder Re-exported ByteOrder enum from capture-system-or-process-audio-core.
CapabilityError Cross-platform capability, permission, liveness, and session error.
CapacityError Re-exported CapacityError enum from capture-system-or-process-audio-core.
Channel Re-exported Channel enum from capture-system-or-process-audio-core.
CombineMode Session-level target combination policy owned by Manager.
CombineResolution Re-exported CombineResolution enum from capture-system-or-process-audio-core.
ControlKind Re-exported ControlKind enum from capture-system-or-process-audio-core.
DefaultDeviceMode Re-exported DefaultDeviceMode enum from capture-system-or-process-audio-core.
DiscoveryDedupe Re-exported DiscoveryDedupe enum from capture-system-or-process-audio-core.
DiscoveryEventKind Re-exported DiscoveryEventKind enum from capture-system-or-process-audio-core.
DiscoveryOrder Re-exported DiscoveryOrder enum from capture-system-or-process-audio-core.
DitherMode Re-exported DitherMode enum from capture-system-or-process-audio-core.
EndReason Re-exported EndReason enum from capture-system-or-process-audio-core.
Failure Re-exported Failure enum from capture-system-or-process-audio-core.
FindAppError Re-exported FindAppError enum from capture-system-or-process-audio-core.
InputConversionPolicy Re-exported InputConversionPolicy enum from capture-system-or-process-audio-core.
Layout Re-exported Layout enum from capture-system-or-process-audio-core.
Mode Re-exported Mode enum from capture-system-or-process-audio-core.
OnFormatChange Re-exported OnFormatChange enum from capture-system-or-process-audio-core.
OnInputFailure Re-exported OnInputFailure enum from capture-system-or-process-audio-core.
OnRootExit Re-exported OnRootExit enum from capture-system-or-process-audio-core.
Overflow Re-exported Overflow enum from capture-system-or-process-audio-core.
OverlapCombinationSemantics Re-exported OverlapCombinationSemantics enum from capture-system-or-process-audio-core.
PartialReason Re-exported PartialReason enum from capture-system-or-process-audio-core.
ParticipationState Re-exported ParticipationState enum from capture-system-or-process-audio-core.
PermissionKind OS recording-consent domain.
PermissionPolicy Recording permission prompt policy during open(). Defaults to AutoRequest; CheckOnly disables prompting.
PermissionState Recording permission status. Unprobed OS domains are never reported as Granted.
PlanError Re-exported PlanError enum from capture-system-or-process-audio-core.
PlatformOs Re-exported PlatformOs enum from capture-system-or-process-audio-core.
ProcessScope Re-exported ProcessScope enum from capture-system-or-process-audio-core.
ProcessTreeStrategy Per-target process-tree acquisition strategy for Process and Application targets.
Provenance Re-exported Provenance enum from capture-system-or-process-audio-core.
ReadError Re-exported ReadError enum from capture-system-or-process-audio-core.
SampleType Re-exported SampleType enum from capture-system-or-process-audio-core.
Stop Re-exported Stop enum from capture-system-or-process-audio-core.
TargetKind Re-exported TargetKind enum from capture-system-or-process-audio-core.
TimingRequirement Cross-platform sample-timing qualification level.