#[non_exhaustive]pub enum Duplicates {
Any,
ContinuationOnly,
}Expand description
Which legal duplicates (ISO/IEC 13818-1 §2.4.3.3) are discarded.
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.
Any
Every duplicate packet.
ContinuationOnly
Only a duplicate continuation (non-PUSI) packet: a repeated unit start is processed again, which is harmless where a repeated whole unit is (PSI sections are version-gated downstream) and keeps a looping or synthetic source that repeats a start packet working.
Implementations§
Trait Implementations§
Source§impl Clone for Duplicates
impl Clone for Duplicates
impl Copy for Duplicates
Source§impl Debug for Duplicates
impl Debug for Duplicates
Source§impl Display for Duplicates
impl Display for Duplicates
impl Eq for Duplicates
Source§impl PartialEq for Duplicates
impl PartialEq for Duplicates
impl StructuralPartialEq for Duplicates
Auto Trait Implementations§
impl Forget for Duplicates
impl Freeze for Duplicates
impl Move for Duplicates
impl RefUnwindSafe for Duplicates
impl Send for Duplicates
impl Sync for Duplicates
impl Unpin for Duplicates
impl UnsafeUnpin for Duplicates
impl UnwindSafe for Duplicates
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