Enum flv_codec::Tag [−][src]
pub enum Tag<Data = Vec<u8>> { Audio(AudioTag<Data>), Video(VideoTag<Data>), ScriptData(ScriptDataTag<Data>), }
FLV tag.
Variants
Audio(AudioTag<Data>)
Audio tag.
Video(VideoTag<Data>)
Video tag.
ScriptData(ScriptDataTag<Data>)
Script data tag.
Methods
impl<Data> Tag<Data>
[src]
impl<Data> Tag<Data>
pub fn kind(&self) -> TagKind
[src]
pub fn kind(&self) -> TagKind
Returns the kind of the tag.
pub fn timestamp(&self) -> Timestamp
[src]
pub fn timestamp(&self) -> Timestamp
Returns the timestamp of the tag.
pub fn stream_id(&self) -> StreamId
[src]
pub fn stream_id(&self) -> StreamId
Returns the stream identifier of the tag.
impl<Data: AsRef<[u8]>> Tag<Data>
[src]
impl<Data: AsRef<[u8]>> Tag<Data>
Trait Implementations
impl<Data: Debug> Debug for Tag<Data>
[src]
impl<Data: Debug> Debug for Tag<Data>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Data: Clone> Clone for Tag<Data>
[src]
impl<Data: Clone> Clone for Tag<Data>
fn clone(&self) -> Tag<Data>
[src]
fn clone(&self) -> Tag<Data>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<Data> From<AudioTag<Data>> for Tag<Data>
[src]
impl<Data> From<AudioTag<Data>> for Tag<Data>
impl<Data> From<VideoTag<Data>> for Tag<Data>
[src]
impl<Data> From<VideoTag<Data>> for Tag<Data>
impl<Data> From<ScriptDataTag<Data>> for Tag<Data>
[src]
impl<Data> From<ScriptDataTag<Data>> for Tag<Data>
fn from(f: ScriptDataTag<Data>) -> Self
[src]
fn from(f: ScriptDataTag<Data>) -> Self
Performs the conversion.