#[non_exhaustive]pub enum AllocationDecline {
RequestNotRepresentable,
GenerationUnavailable,
ConcurrencyLimit,
AllocationCountLimit,
ByteLimit,
PolicyError,
PolicyPanic,
BufferRefused,
}Expand description
Why a custom receive allocation was declined and the SDK dropped its frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RequestNotRepresentable
The SDK’s format, dimensions or requested extent cannot be represented. Includes planar audio above capture’s 64 MiB frame limit; the policy is not called and recording this decline allocates nothing.
The policy generation is unknown, replaced, closing or retired.
ConcurrencyLimit
The process already has its maximum number of concurrent policy calls.
AllocationCountLimit
Retained allocations, calls and reclamations fill the allocation count limit.
ByteLimit
The remaining total or per-allocation byte grant cannot hold the request.
PolicyError
The application policy returned an error.
PolicyPanic
The application policy or its buffer inspection panicked; the callback contained the panic.
BufferRefused
The policy’s buffer has an inconsistent size, layout, stride or live address.