#[non_exhaustive]pub enum AdaptationFieldControl {
Reserved,
PayloadOnly,
AdaptationOnly,
AdaptationAndPayload,
}Expand description
2-bit adaptation_field_control field — ITU-T H.222.0 (08/2023) Table 2-5.
Decoders shall discard packets with value 00 (Reserved). Null packets use 01
(PayloadOnly). The two flags has_adaptation/has_payload on TsHeader carry
the decoded booleans; this enum provides the typed composite view.
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.
Reserved
00 — reserved for future use; decoders shall discard (H.222.0 Table 2-5).
PayloadOnly
01 — no adaptation_field, payload only (H.222.0 Table 2-5).
AdaptationOnly
10 — adaptation_field only, no payload (H.222.0 Table 2-5).
AdaptationAndPayload
11 — adaptation_field followed by payload (H.222.0 Table 2-5).
Implementations§
Trait Implementations§
Source§impl Clone for AdaptationFieldControl
impl Clone for AdaptationFieldControl
Source§fn clone(&self) -> AdaptationFieldControl
fn clone(&self) -> AdaptationFieldControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AdaptationFieldControl
Source§impl Debug for AdaptationFieldControl
impl Debug for AdaptationFieldControl
Source§impl Display for AdaptationFieldControl
impl Display for AdaptationFieldControl
impl Eq for AdaptationFieldControl
Source§impl PartialEq for AdaptationFieldControl
impl PartialEq for AdaptationFieldControl
Source§fn eq(&self, other: &AdaptationFieldControl) -> bool
fn eq(&self, other: &AdaptationFieldControl) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AdaptationFieldControl
impl Serialize for AdaptationFieldControl
impl StructuralPartialEq for AdaptationFieldControl
Auto Trait Implementations§
impl Freeze for AdaptationFieldControl
impl RefUnwindSafe for AdaptationFieldControl
impl Send for AdaptationFieldControl
impl Sync for AdaptationFieldControl
impl Unpin for AdaptationFieldControl
impl UnsafeUnpin for AdaptationFieldControl
impl UnwindSafe for AdaptationFieldControl
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