pub struct FlvTagHeader {
pub tag_type: FlvTagType,
pub data_size: u32,
pub timestamp: u32,
pub stream_id: u32,
}Expand description
The tag header part of FLV tag.
Fields§
§tag_type: FlvTagTypeReserved 2 bits Reserved for FMS, should be 0. Filter 1 bit Indicates if packets are filtered. 0 = No pre-processing required 1 = Pre-processing (Such as decryption) of the packet is required before it can be rendered. TagType 5 bits The type of contents in this tag, 8 = audio, 9 = video, 18 = script.
data_size: u32The size of the tag’s data part, 3 bytes.
timestamp: u32The timestamp (in milliseconds) of the tag, Timestamp (3 bytes) + TimestampExtended (1 byte).
stream_id: u32The id of stream is always 0, 3 bytes.
Trait Implementations§
Source§impl Clone for FlvTagHeader
impl Clone for FlvTagHeader
Source§fn clone(&self) -> FlvTagHeader
fn clone(&self) -> FlvTagHeader
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 moreimpl Copy for FlvTagHeader
Source§impl Debug for FlvTagHeader
impl Debug for FlvTagHeader
impl Eq for FlvTagHeader
Source§impl<E> Parser<E, FlvTagHeader> for FlvParser
impl<E> Parser<E, FlvTagHeader> for FlvParser
Source§impl PartialEq for FlvTagHeader
impl PartialEq for FlvTagHeader
impl StructuralPartialEq for FlvTagHeader
Auto Trait Implementations§
impl Freeze for FlvTagHeader
impl RefUnwindSafe for FlvTagHeader
impl Send for FlvTagHeader
impl Sync for FlvTagHeader
impl Unpin for FlvTagHeader
impl UnsafeUnpin for FlvTagHeader
impl UnwindSafe for FlvTagHeader
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