pub struct SubtitleStream {
pub pid: u16,
pub codec: Codec,
pub language: String,
pub forced: bool,
pub codec_data: Option<Vec<u8>>,
}Expand description
A subtitle stream.
Fields§
§pid: u16MPEG-TS packet ID
codec: CodecCodec (PGS)
language: StringISO 639-2 language code (e.g. “eng”, “fra”)
forced: boolWhether this is a forced subtitle
codec_data: Option<Vec<u8>>Pre-formatted codec private data (e.g. VobSub .idx palette header)
Trait Implementations§
Source§impl Clone for SubtitleStream
impl Clone for SubtitleStream
Source§fn clone(&self) -> SubtitleStream
fn clone(&self) -> SubtitleStream
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 moreAuto Trait Implementations§
impl Freeze for SubtitleStream
impl RefUnwindSafe for SubtitleStream
impl Send for SubtitleStream
impl Sync for SubtitleStream
impl Unpin for SubtitleStream
impl UnsafeUnpin for SubtitleStream
impl UnwindSafe for SubtitleStream
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