Struct rtp::codecs::h265::H265Packet
source · pub struct H265Packet { /* private fields */ }Expand description
Packet implementation
H265Packet represents a H265 packet, stored in the payload of an RTP packet.
Implementations
sourceimpl H265Packet
impl H265Packet
sourcepub fn with_donl(&mut self, value: bool)
pub fn with_donl(&mut self, value: bool)
with_donl can be called to specify whether or not DONL might be parsed.
DONL may need to be parsed if sprop-max-don-diff is greater than 0 on the RTP stream.
sourcepub fn payload(&self) -> &H265Payload
pub fn payload(&self) -> &H265Payload
payload returns the populated payload. Must be casted to one of:
- H265SingleNALUnitPacket
- H265FragmentationUnitPacket
- H265AggregationPacket
- H265PACIPacket
Trait Implementations
sourceimpl Clone for H265Packet
impl Clone for H265Packet
sourcefn clone(&self) -> H265Packet
fn clone(&self) -> H265Packet
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 moresourceimpl Debug for H265Packet
impl Debug for H265Packet
sourceimpl Default for H265Packet
impl Default for H265Packet
sourcefn default() -> H265Packet
fn default() -> H265Packet
Returns the “default value” for a type. Read more
sourceimpl Depacketizer for H265Packet
impl Depacketizer for H265Packet
sourcefn depacketize(&mut self, payload: &Bytes) -> Result<Bytes, Error>
fn depacketize(&mut self, payload: &Bytes) -> Result<Bytes, Error>
depacketize parses the passed byte slice and stores the result in the H265Packet 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<H265Packet> for H265Packet
impl PartialEq<H265Packet> for H265Packet
sourcefn eq(&self, other: &H265Packet) -> bool
fn eq(&self, other: &H265Packet) -> bool
impl Eq for H265Packet
impl StructuralEq for H265Packet
impl StructuralPartialEq for H265Packet
Auto Trait Implementations
impl RefUnwindSafe for H265Packet
impl Send for H265Packet
impl Sync for H265Packet
impl Unpin for H265Packet
impl UnwindSafe for H265Packet
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