pub struct DownloadDataBlock<'a> {
pub download_id: u32,
pub adaptation: &'a [u8],
pub module_id: u16,
pub module_version: u8,
pub block_number: u16,
pub block_data: &'a [u8],
}Expand description
DownloadDataBlock (§7.3.7.1, messageId 0x1003) — payload of a table_id 0x3C DSM-CC section, including its dsmccDownloadDataHeader.
Fields§
§download_id: u32downloadId from the dsmccDownloadDataHeader — matches the DII.
adaptation: &'a [u8]Raw dsmccAdaptationHeader bytes (usually empty).
module_id: u16moduleId of the module this block belongs to.
module_version: u8moduleVersion — must match the DII module entry.
block_number: u16Block index; byte offset within the module = blockNumber × blockSize.
block_data: &'a [u8]The block payload.
Trait Implementations§
Source§impl<'a> Clone for DownloadDataBlock<'a>
impl<'a> Clone for DownloadDataBlock<'a>
Source§fn clone(&self) -> DownloadDataBlock<'a>
fn clone(&self) -> DownloadDataBlock<'a>
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 moreSource§impl<'a> Debug for DownloadDataBlock<'a>
impl<'a> Debug for DownloadDataBlock<'a>
impl<'a> Eq for DownloadDataBlock<'a>
Source§impl<'a> Parse<'a> for DownloadDataBlock<'a>
impl<'a> Parse<'a> for DownloadDataBlock<'a>
Source§impl<'a> PartialEq for DownloadDataBlock<'a>
impl<'a> PartialEq for DownloadDataBlock<'a>
Source§fn eq(&self, other: &DownloadDataBlock<'a>) -> bool
fn eq(&self, other: &DownloadDataBlock<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DownloadDataBlock<'_>
impl Serialize for DownloadDataBlock<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.Source§impl<'a> Serialize for DownloadDataBlock<'a>
impl<'a> Serialize for DownloadDataBlock<'a>
impl<'a> StructuralPartialEq for DownloadDataBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for DownloadDataBlock<'a>
impl<'a> RefUnwindSafe for DownloadDataBlock<'a>
impl<'a> Send for DownloadDataBlock<'a>
impl<'a> Sync for DownloadDataBlock<'a>
impl<'a> Unpin for DownloadDataBlock<'a>
impl<'a> UnsafeUnpin for DownloadDataBlock<'a>
impl<'a> UnwindSafe for DownloadDataBlock<'a>
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