#[non_exhaustive]pub enum SectionRejection {
NotASection,
MoreThanOneSection,
DuplicateSection,
Malformed,
WrongTableId {
expected: u8,
found: Option<u8>,
},
}Expand description
Why SiMux::upsert could not put a section into the emission
schedule.
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.
NotASection
The input held no complete section (an empty slice, or a header that
declares more bytes than were given), so there is nothing to parse.
An empty input used to register a whole (pid, table_id 0) entry and
emit the PAT interval’s worth of nothing.
MoreThanOneSection
Two or more sections were given for one PID. A SectionKey names one
section, so a batch is ambiguous; register each on its own call.
DuplicateSection
Several sections on one PID carried the same (table_id, section_number): the second would silently replace the first.
Malformed
The section bytes did not parse as a section header.
WrongTableId
A convenience registration received a section of another table: a
table_id other than the one that registration is for.
Implementations§
Trait Implementations§
Source§impl Clone for SectionRejection
impl Clone for SectionRejection
impl Copy for SectionRejection
Source§impl Debug for SectionRejection
impl Debug for SectionRejection
Source§impl Display for SectionRejection
impl Display for SectionRejection
impl Eq for SectionRejection
Source§impl PartialEq for SectionRejection
impl PartialEq for SectionRejection
Source§impl Serialize for SectionRejection
Available on crate feature serde only.
impl Serialize for SectionRejection
Available on crate feature
serde only.impl StructuralPartialEq for SectionRejection
Auto Trait Implementations§
impl Forget for SectionRejection
impl Freeze for SectionRejection
impl Move for SectionRejection
impl RefUnwindSafe for SectionRejection
impl Send for SectionRejection
impl Sync for SectionRejection
impl Unpin for SectionRejection
impl UnsafeUnpin for SectionRejection
impl UnwindSafe for SectionRejection
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