pub struct Packet {
pub marker: bool,
pub payload_type: u8,
pub sequence: u16,
pub timestamp: u32,
pub ssrc: u32,
pub csrc: Vec<u32>,
pub payload: Bytes,
}Expand description
An RTP packet.
Fields§
§marker: boolWhether this packet marks a significant event — the start of a talkspurt, or the end of a DTMF tone.
payload_type: u8Which codec the payload is in.
sequence: u16Increases by one per packet, and wraps.
timestamp: u32The sampling instant of the first byte of payload.
ssrc: u32Who sent it.
csrc: Vec<u32>Sources that contributed, when a mixer combined streams.
payload: BytesThe media.
Implementations§
Trait Implementations§
impl Eq for Packet
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl !Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnsafeUnpin for Packet
impl UnwindSafe for Packet
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