Enum wavv::Error[][src]

pub enum Error {
    UnknownChunkID([u8; 4]),
    CantParseSliceInto(TryFromSliceError),
    CantParseChunk(ChunkId),
    CantParseMetaDataChunk,
    NoRiffChunkFound,
    NoWaveIdFound,
    NoDataChunkFound,
    NoFmtChunkFound,
    UnsupportedBitDepth(u16),
}
Expand description

Error type for different parsing failures

Variants

UnknownChunkID

Unknown or unsupported Chunk ID

Tuple Fields of UnknownChunkID

0: [u8; 4]
CantParseSliceInto

Failed parsing slice into specific bytes

Tuple Fields of CantParseSliceInto

0: TryFromSliceError
CantParseChunk

Failed parsing chunk with given id

Tuple Fields of CantParseChunk

0: ChunkId
CantParseMetaDataChunk

Failed parsing meta data chunk

NoRiffChunkFound

no riff chunk found in file, probably not a valid RIFF file

NoWaveIdFound

no wave id found in file, probably not a valid WAV file

NoDataChunkFound

no data chunk found in file

NoFmtChunkFound

no fmt/header chunk found in file

UnsupportedBitDepth

unsupported bit depth

Tuple Fields of UnsupportedBitDepth

0: u16

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.