pub enum SubstreamError {
Show 14 variants
InvalidExtraSubstreamWordFbb,
InvalidRestartNonexistent {
expected: bool,
suffix: String,
},
TooManyBlocks(usize),
SampleCountMismatch {
substream: usize,
decoded: usize,
expected: usize,
},
DrcTimeUpdateExceeded {
drc_time_update: u8,
drc_count: usize,
},
InvalidTerminationWord(u32),
InvalidTerminatorB {
substream: usize,
read: u16,
},
TooManyZeroSamples {
substream: usize,
zero_samples: u16,
},
UnalignedSegmentEnd(usize),
SubstreamEndMismatch {
substream: usize,
read: u64,
expected: u64,
},
SubstreamSizeUnderflow {
substream: usize,
end_pos: u64,
current_pos: u64,
},
SubstreamLengthUnderflow {
substream: usize,
current_pos: u64,
start_pos: u64,
},
ParityMismatch {
substream: usize,
calculated: u8,
read: u8,
},
CrcMismatch {
substream: usize,
calculated: u8,
read: u8,
},
}Variants§
InvalidExtraSubstreamWordFbb
InvalidRestartNonexistent
TooManyBlocks(usize)
SampleCountMismatch
DrcTimeUpdateExceeded
InvalidTerminationWord(u32)
InvalidTerminatorB
TooManyZeroSamples
UnalignedSegmentEnd(usize)
SubstreamEndMismatch
SubstreamSizeUnderflow
SubstreamLengthUnderflow
ParityMismatch
CrcMismatch
Trait Implementations§
Source§impl Debug for SubstreamError
impl Debug for SubstreamError
Source§impl Display for SubstreamError
impl Display for SubstreamError
Source§impl Error for SubstreamError
impl Error for SubstreamError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SubstreamError
impl RefUnwindSafe for SubstreamError
impl Send for SubstreamError
impl Sync for SubstreamError
impl Unpin for SubstreamError
impl UnsafeUnpin for SubstreamError
impl UnwindSafe for SubstreamError
Blanket Implementations§
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
Mutably borrows from an owned value. Read more