Struct retina::codec::MessageFrame
source · pub struct MessageFrame { /* private fields */ }
Expand description
A single message, for application
media types.
Implementations§
source§impl MessageFrame
impl MessageFrame
pub fn ctx(&self) -> &PacketContext
pub fn stream_id(&self) -> usize
pub fn timestamp(&self) -> Timestamp
sourcepub fn loss(&self) -> u16
pub fn loss(&self) -> u16
Returns the number of lost RTP packets before this frame. See crate::rtp::ReceivedPacket::loss.
Note that if loss occurs during a fragmented frame, more than this number of packets’ worth of data may be skipped.
pub fn data(&self) -> &[u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MessageFrame
impl Send for MessageFrame
impl Sync for MessageFrame
impl Unpin for MessageFrame
impl UnwindSafe for MessageFrame
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