pub struct UnsupportedSpecChannelCount { /* private fields */ }Available on crate feature
resample only.Expand description
Payload for ResampleError::UnsupportedChannelCount.
A spec declaring more channels than a frame’s channel seat can
carry. mediadecode’s AudioFrame states its channel count in a
u8, so 255 is the ceiling in both directions.
This is the packed sibling of [TooManyPlanes], which only ever
caught planar specs: packed audio declares one plane whatever its
channel count, so a 256-channel packed spec sailed past that check
and had its count clipped on the way into the frame — a frame whose
bytes were computed from 256 channels while advertising 255. Refused
here, at the same choke point, for both ends.
Implementations§
Trait Implementations§
Source§impl Clone for UnsupportedChannelCount
impl Clone for UnsupportedChannelCount
Source§fn clone(&self) -> UnsupportedChannelCount
fn clone(&self) -> UnsupportedChannelCount
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 UnsupportedChannelCount
impl Debug for UnsupportedChannelCount
Source§impl Display for UnsupportedChannelCount
impl Display for UnsupportedChannelCount
Source§impl Error for UnsupportedChannelCount
impl Error for UnsupportedChannelCount
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<UnsupportedChannelCount> for ResampleError
impl From<UnsupportedChannelCount> for ResampleError
Source§fn from(source: UnsupportedChannelCount) -> Self
fn from(source: UnsupportedChannelCount) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UnsupportedChannelCount
impl RefUnwindSafe for UnsupportedChannelCount
impl Send for UnsupportedChannelCount
impl Sync for UnsupportedChannelCount
impl Unpin for UnsupportedChannelCount
impl UnsafeUnpin for UnsupportedChannelCount
impl UnwindSafe for UnsupportedChannelCount
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