#[repr(transparent)]pub struct VideoPacketType(pub u8);
Expand description
Different types of video packets.
Defined by:
- Enhanced RTMP spec, page 27-28, Enhanced Video
Tuple Fields§
§0: u8
Implementations§
Source§impl VideoPacketType
impl VideoPacketType
Sourcepub const SequenceStart: Self
pub const SequenceStart: Self
Sequence start.
Sourcepub const CodedFrames: Self
pub const CodedFrames: Self
Coded frames.
Sourcepub const SequenceEnd: Self
pub const SequenceEnd: Self
Sequence end.
Sourcepub const CodedFramesX: Self
pub const CodedFramesX: Self
Coded frames without extra data.
Sourcepub const Mpeg2TsSequenceStart: Self
pub const Mpeg2TsSequenceStart: Self
MPEG-2 TS sequence start.
Sourcepub const Multitrack: Self
pub const Multitrack: Self
Turns on audio multitrack mode.
Trait Implementations§
Source§impl Clone for VideoPacketType
impl Clone for VideoPacketType
Source§fn clone(&self) -> VideoPacketType
fn clone(&self) -> VideoPacketType
Returns a copy 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 moreSource§impl Debug for VideoPacketType
impl Debug for VideoPacketType
Source§impl From<VideoPacketType> for u8
impl From<VideoPacketType> for u8
Source§fn from(value: VideoPacketType) -> Self
fn from(value: VideoPacketType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for VideoPacketType
impl From<u8> for VideoPacketType
Source§impl Hash for VideoPacketType
impl Hash for VideoPacketType
Source§impl Ord for VideoPacketType
impl Ord for VideoPacketType
Source§fn cmp(&self, other: &VideoPacketType) -> Ordering
fn cmp(&self, other: &VideoPacketType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VideoPacketType
impl PartialEq for VideoPacketType
Source§impl PartialOrd for VideoPacketType
impl PartialOrd for VideoPacketType
impl Copy for VideoPacketType
impl Eq for VideoPacketType
impl StructuralPartialEq for VideoPacketType
Auto Trait Implementations§
impl Freeze for VideoPacketType
impl RefUnwindSafe for VideoPacketType
impl Send for VideoPacketType
impl Sync for VideoPacketType
impl Unpin for VideoPacketType
impl UnwindSafe for VideoPacketType
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