pub struct SubtitleDownload<'a> {
pub more: bool,
pub segment: &'a [u8],
}Expand description
subtitle_download() object (Table 43): identical format to
subtitle_segment but constrained to object-data segments.
The _last (9F 88 14) / _more (9F 88 15) tags share this body;
SubtitleDownload::more selects which tag is written and is set from the tag.
Fields§
§more: booltrue = subtitle_download_more; false = subtitle_download_last.
segment: &'a [u8]The DVB_Subtitling_segment (object-data) bytes, verbatim.
Implementations§
Source§impl SubtitleDownload<'_>
impl SubtitleDownload<'_>
Sourcepub fn tag(&self) -> ApduTag
pub fn tag(&self) -> ApduTag
The apdu_tag for this object given SubtitleDownload::more.
Trait Implementations§
Source§impl<'a> ApduDef<'a> for SubtitleDownload<'a>
impl<'a> ApduDef<'a> for SubtitleDownload<'a>
Source§impl<'a> Clone for SubtitleDownload<'a>
impl<'a> Clone for SubtitleDownload<'a>
Source§fn clone(&self) -> SubtitleDownload<'a>
fn clone(&self) -> SubtitleDownload<'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 SubtitleDownload<'a>
impl<'a> Debug for SubtitleDownload<'a>
impl<'a> Eq for SubtitleDownload<'a>
Source§impl<'a> From<SubtitleDownload<'a>> for AnyApdu<'a>
impl<'a> From<SubtitleDownload<'a>> for AnyApdu<'a>
Source§fn from(v: SubtitleDownload<'a>) -> Self
fn from(v: SubtitleDownload<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for SubtitleDownload<'a>
impl<'a> Parse<'a> for SubtitleDownload<'a>
Source§impl<'a> PartialEq for SubtitleDownload<'a>
impl<'a> PartialEq for SubtitleDownload<'a>
Source§impl<'a> Serialize for SubtitleDownload<'a>
Available on crate feature serde only.
impl<'a> Serialize for SubtitleDownload<'a>
Available on crate feature
serde only.Source§impl Serialize for SubtitleDownload<'_>
impl Serialize for SubtitleDownload<'_>
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.impl<'a> StructuralPartialEq for SubtitleDownload<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubtitleDownload<'a>
impl<'a> RefUnwindSafe for SubtitleDownload<'a>
impl<'a> Send for SubtitleDownload<'a>
impl<'a> Sync for SubtitleDownload<'a>
impl<'a> Unpin for SubtitleDownload<'a>
impl<'a> UnsafeUnpin for SubtitleDownload<'a>
impl<'a> UnwindSafe for SubtitleDownload<'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