pub struct BufferedPacket {
pub seq: u16,
pub timestamp: u32,
pub payload: Vec<u8>,
pub received_at: Instant,
pub synthesized: bool,
}Expand description
A buffered RTP packet ready for playout.
Fields§
§seq: u16RTP sequence number.
timestamp: u32RTP timestamp.
payload: Vec<u8>Packet payload (encoded audio).
received_at: InstantWhen this packet was received.
synthesized: boolWhether this is a synthesized packet (for loss concealment).
Trait Implementations§
Source§impl Clone for BufferedPacket
impl Clone for BufferedPacket
Source§fn clone(&self) -> BufferedPacket
fn clone(&self) -> BufferedPacket
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BufferedPacket
impl RefUnwindSafe for BufferedPacket
impl Send for BufferedPacket
impl Sync for BufferedPacket
impl Unpin for BufferedPacket
impl UnsafeUnpin for BufferedPacket
impl UnwindSafe for BufferedPacket
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