Enum TocError Copy item path Source pub enum TocError {
Show 16 variants CDDASampleCount,
CDTOCChars,
Checksums,
Format(TocKind ),
LeadinSize,
NoAudio,
NoChecksums,
SectorCount(u8 , usize ),
SectorOrder,
SectorSize,
TrackCount,
AccurateRipDecode,
DriveOffsetDecode,
NoDriveOffsets,
CddbDecode,
ShaB64Decode,
}Expand description § 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.
§ 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.
§ 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).
§ Leadin Too Small.
Audio CDs require a leadin of at least 150.
§ No Audio.
At least one audio track is required for a table of contents.
§ No Checksums.
This error is used when an AccurateRip or CTDB checksum manifest yields
no valid checksums.
§ Invalid sector count.
The stated number of audio tracks should match the number of sectors
provided (once data and leadout values have been separated).
§ 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.
§ Sector Size.
Sector values cannot exceed u32::MAX .
§ Track Count.
Audio CDs support a maximum of 99 tracks.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Returns the lower-level source of this error, if any.
Read more 👎 Deprecated since 1.42.0: use the Display impl or to_string()
👎 Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬 This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
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.