#[non_exhaustive]pub struct VendorSpecificBlock {
pub oui: u32,
pub payload: Vec<u8>,
}Expand description
A decoded Vendor-Specific Video Data Block (VSVDB, extended tag 0x01) or
Vendor-Specific Audio Data Block (VSADB, extended tag 0x11).
Both block types share the same structure: a 3-byte IEEE OUI followed by an opaque vendor-defined payload (CTA-861 Tables 56–57). The payload is stored verbatim for consumers that recognise the OUI.
Well-known video OUIs include Dolby Vision (0x00D046) and HDR10+ (0x90848B).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.oui: u3224-bit IEEE OUI in canonical (MSB-first) form.
Assembled from the three OUI bytes as (byte2 << 16) | (byte1 << 8) | byte0,
where byte0 is the least-significant byte as stored on the wire.
payload: Vec<u8>Vendor-defined payload bytes following the OUI.
Implementations§
Trait Implementations§
Source§impl Clone for VendorSpecificBlock
impl Clone for VendorSpecificBlock
Source§fn clone(&self) -> VendorSpecificBlock
fn clone(&self) -> VendorSpecificBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VendorSpecificBlock
impl Debug for VendorSpecificBlock
Source§impl PartialEq for VendorSpecificBlock
impl PartialEq for VendorSpecificBlock
impl Eq for VendorSpecificBlock
impl StructuralPartialEq for VendorSpecificBlock
Auto Trait Implementations§
impl Freeze for VendorSpecificBlock
impl RefUnwindSafe for VendorSpecificBlock
impl Send for VendorSpecificBlock
impl Sync for VendorSpecificBlock
impl Unpin for VendorSpecificBlock
impl UnsafeUnpin for VendorSpecificBlock
impl UnwindSafe for VendorSpecificBlock
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