pub struct Datagram {
pub sequence: u64,
pub timestamp: Timestamp,
pub payload: Bytes,
}Expand description
A single unreliable payload on a track: a sequence number, a presentation timestamp, and the bytes.
The sequence number is drawn from the same namespace as the track’s groups, so a relay can forward
a datagram while preserving the origin’s numbering (see super::track::Producer::write_datagram).
Fields§
§sequence: u64Per-track sequence number, shared with the group namespace.
timestamp: TimestampPresentation timestamp in the track’s timescale.
payload: BytesThe datagram payload.
Trait Implementations§
impl Eq for Datagram
impl StructuralPartialEq for Datagram
Auto Trait Implementations§
impl !Freeze for Datagram
impl RefUnwindSafe for Datagram
impl Send for Datagram
impl Sync for Datagram
impl Unpin for Datagram
impl UnsafeUnpin for Datagram
impl UnwindSafe for Datagram
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