#[non_exhaustive]pub enum CollectError {
Section(Error),
ShortFormSection {
table_id: u8,
},
SectionNumberOutOfRange {
table_id: u8,
section_number: u8,
last_section_number: u8,
},
ConflictingSection {
table_id: u8,
section_number: u8,
},
EitTableIdOutOfRange {
table_id: u8,
first_table_id: u8,
last_table_id: u8,
},
}Expand description
Errors returned by multi-section collectors.
These errors are scoped to the current input section. They usually mean
“skip this section and keep going”, especially on live streams where a
broadcaster may mutate section bytes without bumping version_number.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Section(Error)
The section bytes did not parse as a generic PSI/SI section.
ShortFormSection
A short-form section was fed to a multi-section collector.
SectionNumberOutOfRange
section_number was outside the advertised section range.
Fields
ConflictingSection
A slot already contained different bytes for the same version.
EitTableIdOutOfRange
An EIT schedule section advertised an impossible table-id range.
Trait Implementations§
Source§impl Debug for CollectError
impl Debug for CollectError
Source§impl Display for CollectError
impl Display for CollectError
Source§impl Error for CollectError
impl Error for CollectError
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 CollectError
impl RefUnwindSafe for CollectError
impl Send for CollectError
impl Sync for CollectError
impl Unpin for CollectError
impl UnsafeUnpin for CollectError
impl UnwindSafe for CollectError
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