pub enum TocError {
}Expand description
Variants§
CDDASampleCount
CDDA Sample Rate.
The total number of samples for a given audio track on a CD must be
evenly divisible by 588, the number of samples per sector.
CDTOCChars
Invalid characters.
CDTOC metadata tags comprise HEX-encoded decimals separated by +
signs. The only other character allowed is an X, used to indicate a
leading data session.
Checksums
Invalid Checksum File.
This is a catch-all error used when an AccurateRip or CTDB checksum manifest contains some sort of logical error (i.e. preventing it being parsed).
Format(TocKind)
Invalid Format For Operation.
This is a catch-all error used when a given disc format is incompatible
with the operation, such as TocKind::DataFirst w/ Toc::set_audio_leadin.
LeadinSize
Leadin Too Small.
Audio CDs require a leadin of at least 150.
NoAudio
No Audio.
At least one audio track is required for a table of contents.
NoChecksums
No Checksums.
This error is used when an AccurateRip or CTDB checksum manifest yields no valid checksums.
SectorCount(u8, usize)
Invalid sector count.
The stated number of audio tracks should match the number of sectors provided (once data and leadout values have been separated).
SectorOrder
Sector Ordering.
Audio CD sectors must be sequentially ordered and non-overlapping, and the data session, if any, must come either immediately before or after the audio set. The leadout must be larger than every other sector.
SectorSize
Sector Size.
Sector values cannot exceed u32::MAX.
TrackCount
Track Count.
Audio CDs support a maximum of 99 tracks.
AccurateRipDecode
DriveOffsetDecode
NoDriveOffsets
CddbDecode
ShaB64Decode
Trait Implementations§
source§impl Error for TocError
impl Error for TocError
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
source§impl Ord for TocError
impl Ord for TocError
source§impl PartialEq for TocError
impl PartialEq for TocError
source§impl PartialOrd for TocError
impl PartialOrd for TocError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more