pub enum ReadError<FatalDecoderError: Error> {
FatalError(FatalReadError<FatalDecoderError>),
EndOfFile,
CacheIndexOutOfRange {
index: usize,
num_caches: usize,
},
IOServerChannelFull,
InvalidBuffer,
}Expand description
An error reading the file.
Variants§
FatalError(FatalReadError<FatalDecoderError>)
A fatal error occurred. The stream cannot continue.
EndOfFile
The end of the file was reached. The stream must be seeked to an earlier position to continue reading data. Until then, output silence.
If this is returned, then the playhead of the stream did not advance.
CacheIndexOutOfRange
The given cache with index index is out of range of the number
of caches assigned to this stream. Please try a
different index.
If this is returned, then the playhead of the stream did not advance.
IOServerChannelFull
The message channel to the IO server was full.
In theory this should not happen, but if it does, then output silence until the channel has more slots open later.
If this is returned, then the playhead of the stream did not advance.
InvalidBuffer
The given buffer does not match the internal layout of the stream. Check that the number of channels in both are the same.
If this is returned, then the playhead of the stream did not advance.
Trait Implementations§
Source§impl<FatalDecoderError: Error> Error for ReadError<FatalDecoderError>
impl<FatalDecoderError: Error> Error for ReadError<FatalDecoderError>
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()