pub enum PcmWavError {
Show 19 variants
Raw(PcmRawError),
Riff(RiffError),
NotWave,
MissingFmt,
MissingData,
TruncatedFmt,
UnsupportedFormat(u16),
UnsupportedChannelCount(u16),
UnsupportedBitsPerSample(u16),
InvalidBlockAlign,
InvalidByteRate,
InvalidDataLength,
Overflow,
NotEnoughSpace,
SizeOutOfRange,
UnsupportedEncoding,
InvalidExtensibleFormat,
UnsupportedSubformat,
Io(IoErrorKind),
}audio only.Expand description
๐ ๐ฉ WAVE encoding and decoding error.
๐ media/audio::PcmWavError
๐ฆ size_of::<PcmWavError>() == 4 bytes / 32 bits
Variantsยง
Raw(PcmRawError)
Raw PCM byte/sample conversion failed.
Riff(RiffError)
RIFF-level parsing failed.
NotWave
The RIFF form type is not WAVE.
MissingFmt
The required fmt chunk was not found.
MissingData
The required data chunk was not found.
TruncatedFmt
The fmt chunk is shorter than the base 16-byte PCM format.
UnsupportedFormat(u16)
The WAVE format code is not supported by this parser.
UnsupportedChannelCount(u16)
The channel count is zero or cannot map to current PCM metadata.
UnsupportedBitsPerSample(u16)
The bits-per-sample field is not supported by current PCM metadata.
InvalidBlockAlign
block_align does not match the parsed format.
InvalidByteRate
byte_rate does not match the parsed format.
InvalidDataLength
The data chunk length is not a multiple of block_align.
Overflow
A size computation overflowed.
NotEnoughSpace
The destination buffer is too small.
SizeOutOfRange
The encoded WAVE file would exceed RIFFโs 32-bit size fields.
UnsupportedEncoding
The WAVE format metadata cannot be represented by the current writer.
InvalidExtensibleFormat
The WAVE extensible fmt extension is malformed.
UnsupportedSubformat
The WAVE extensible subformat GUID is not supported.
Io(IoErrorKind)
std only.Reading the file failed.
Trait Implementationsยง
Sourceยงimpl Clone for PcmWavError
impl Clone for PcmWavError
Sourceยงfn clone(&self) -> PcmWavError
fn clone(&self) -> PcmWavError
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PcmWavError
Sourceยงimpl Debug for PcmWavError
impl Debug for PcmWavError
Sourceยงimpl Display for PcmWavError
impl Display for PcmWavError
impl Eq for PcmWavError
Sourceยงimpl Error for PcmWavError
impl Error for PcmWavError
1.30.0 ยท Sourceยงfn source(&self) -> Option<&(dyn Error + 'static)> โ
fn source(&self) -> Option<&(dyn Error + 'static)> โ
1.0.0 ยท Sourceยงfn description(&self) -> &str โ
fn description(&self) -> &str โ
use the Display impl or to_string()
Sourceยงimpl From<Error> for PcmWavError
Available on crate feature std only.
impl From<Error> for PcmWavError
std only.Sourceยงimpl From<PcmRawError> for PcmWavError
impl From<PcmRawError> for PcmWavError
Sourceยงfn from(err: PcmRawError) -> Self
fn from(err: PcmRawError) -> Self
Sourceยงimpl From<RiffError> for PcmWavError
impl From<RiffError> for PcmWavError
Sourceยงimpl Hash for PcmWavError
impl Hash for PcmWavError
Sourceยงimpl PartialEq for PcmWavError
impl PartialEq for PcmWavError
impl StructuralPartialEq for PcmWavError
Auto Trait Implementationsยง
impl Freeze for PcmWavError
impl RefUnwindSafe for PcmWavError
impl Send for PcmWavError
impl Sync for PcmWavError
impl Unpin for PcmWavError
impl UnsafeUnpin for PcmWavError
impl UnwindSafe for PcmWavError
Blanket Implementationsยง
Sourceยงimpl<T> AnyExt for T
impl<T> AnyExt for T
Sourceยงfn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
TypeId of Self using a custom hasher.Sourceยงfn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Sourceยงfn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
alloc only.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
Sourceยงimpl<T> ByteSized for T
impl<T> ByteSized for T
Sourceยงconst BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Sourceยงfn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Sourceยงfn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<T> MemExt for Twhere
T: ?Sized,
impl<T> MemExt for Twhere
T: ?Sized,
Sourceยงconst NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Sourceยงfn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Sourceยงfn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Sourceยงfn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Sourceยงfn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Sourceยงfn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true if dropping values of this type matters. Read moreSourceยงfn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self without running its destructor. Read moreSourceยงfn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงunsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงunsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงfn mem_as_bytes(&self) -> &[u8] โ
fn mem_as_bytes(&self) -> &[u8] โ
unsafe_slice only.