#[non_exhaustive]pub enum DecoderBackend {
Symphonia,
}Expand description
Explicit backend selection for DecoderFactory.
Replaces the legacy boolean prefer_hardware flag with a typed
enum so callers spell out which backend they want. Failures of the
selected backend are terminal — there is no fallback chain.
Variants are gated on cargo features: a hardware variant exists in
the type only when its platform feature is enabled (and only on a
matching target_os). Picking DecoderBackend::Apple on Linux is
therefore a compile error, not a runtime BackendUnavailable.
Default = DecoderBackend::Symphonia: the software path is
cross-platform and capability-complete (gapless seek, full
StreamContext propagation). Hardware backends (Apple/Android)
are opt-in — there is no runtime fallback.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Symphonia
Symphonia software decoder (cross-platform, requires the
symphonia feature).
Trait Implementations§
Source§impl Clone for DecoderBackend
impl Clone for DecoderBackend
Source§fn clone(&self) -> DecoderBackend
fn clone(&self) -> DecoderBackend
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DecoderBackend
impl Debug for DecoderBackend
Source§impl Default for DecoderBackend
impl Default for DecoderBackend
Source§fn default() -> DecoderBackend
fn default() -> DecoderBackend
Source§impl Display for DecoderBackend
impl Display for DecoderBackend
Source§impl PartialEq for DecoderBackend
impl PartialEq for DecoderBackend
Source§fn eq(&self, other: &DecoderBackend) -> bool
fn eq(&self, other: &DecoderBackend) -> bool
self and other values to be equal, and is used by ==.