pub struct H264Packet {
pub is_avc: bool,
/* private fields */
}Expand description
H264Packet represents the H264 header that is stored in the payload of an RTP Packet
Fields
is_avc: boolTrait Implementations
sourceimpl Clone for H264Packet
impl Clone for H264Packet
sourcefn clone(&self) -> H264Packet
fn clone(&self) -> H264Packet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for H264Packet
impl Debug for H264Packet
sourceimpl Default for H264Packet
impl Default for H264Packet
sourcefn default() -> H264Packet
fn default() -> H264Packet
Returns the “default value” for a type. Read more
sourceimpl Depacketizer for H264Packet
impl Depacketizer for H264Packet
sourcefn depacketize(&mut self, packet: &Bytes) -> Result<Bytes, Error>
fn depacketize(&mut self, packet: &Bytes) -> Result<Bytes, Error>
depacketize parses the passed byte slice and stores the result in the H264Packet this method is called upon
sourcefn is_partition_head(&self, payload: &Bytes) -> bool
fn is_partition_head(&self, payload: &Bytes) -> bool
is_partition_head checks if this is the head of a packetized nalu stream.
sourceimpl PartialEq<H264Packet> for H264Packet
impl PartialEq<H264Packet> for H264Packet
sourcefn eq(&self, other: &H264Packet) -> bool
fn eq(&self, other: &H264Packet) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Eq for H264Packet
impl StructuralEq for H264Packet
impl StructuralPartialEq for H264Packet
Auto Trait Implementations
impl RefUnwindSafe for H264Packet
impl Send for H264Packet
impl Sync for H264Packet
impl Unpin for H264Packet
impl UnwindSafe for H264Packet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more