pub struct OpusPacket;Expand description
OpusPacket represents the Opus header that is stored in the payload of an RTP Packet
Trait Implementations
sourceimpl Clone for OpusPacket
impl Clone for OpusPacket
sourcefn clone(&self) -> OpusPacket
fn clone(&self) -> OpusPacket
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 OpusPacket
impl Debug for OpusPacket
sourceimpl Default for OpusPacket
impl Default for OpusPacket
sourcefn default() -> OpusPacket
fn default() -> OpusPacket
Returns the “default value” for a type. Read more
sourceimpl Depacketizer for OpusPacket
impl Depacketizer for OpusPacket
fn depacketize(&mut self, packet: &Bytes) -> Result<Bytes, Error>
sourcefn is_partition_head(&self, _payload: &Bytes) -> bool
fn is_partition_head(&self, _payload: &Bytes) -> bool
Checks if the packet is at the beginning of a partition. This should return false if the result could not be determined, in which case the caller will detect timestamp discontinuities. Read more
sourceimpl PartialEq<OpusPacket> for OpusPacket
impl PartialEq<OpusPacket> for OpusPacket
sourcefn eq(&self, other: &OpusPacket) -> bool
fn eq(&self, other: &OpusPacket) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Eq for OpusPacket
impl StructuralEq for OpusPacket
impl StructuralPartialEq for OpusPacket
Auto Trait Implementations
impl RefUnwindSafe for OpusPacket
impl Send for OpusPacket
impl Sync for OpusPacket
impl Unpin for OpusPacket
impl UnwindSafe for OpusPacket
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