pub struct SrtTimestamp(/* private fields */);Expand description
An SRT header Timestamp — the 32-bit field of draft-sharabayko-srt-01 §3
(Figure 2), carried by every data and control packet.
On a data packet it is a media timestamp in microseconds relative to
connection establishment (§3.1), wrapping every 2^32 µs (~71.58 min,
rule 15 of private/specs-verified/rules/srt-tsbpd.md); on a control packet
it is the sender’s current time for the packet’s purpose (§3.2). It always
fits the 32-bit field, so there is no range rejection — the type keeps a
header timestamp from being confused with a sequence number, a socket id or
a plain count.
Implementations§
Trait Implementations§
Source§impl Clone for SrtTimestamp
impl Clone for SrtTimestamp
impl Copy for SrtTimestamp
Source§impl Debug for SrtTimestamp
impl Debug for SrtTimestamp
Source§impl Default for SrtTimestamp
impl Default for SrtTimestamp
Source§impl Display for SrtTimestamp
impl Display for SrtTimestamp
impl Eq for SrtTimestamp
Source§impl From<SrtTimestamp> for u32
impl From<SrtTimestamp> for u32
Source§fn from(ts: SrtTimestamp) -> Self
fn from(ts: SrtTimestamp) -> Self
Converts to this type from the input type.
Source§impl From<u32> for SrtTimestamp
impl From<u32> for SrtTimestamp
Source§impl Hash for SrtTimestamp
impl Hash for SrtTimestamp
Source§impl PartialEq for SrtTimestamp
impl PartialEq for SrtTimestamp
Source§impl Serialize for SrtTimestamp
Available on crate feature serde only.
impl Serialize for SrtTimestamp
Available on crate feature
serde only.impl StructuralPartialEq for SrtTimestamp
Auto Trait Implementations§
impl Forget for SrtTimestamp
impl Freeze for SrtTimestamp
impl Move for SrtTimestamp
impl RefUnwindSafe for SrtTimestamp
impl Send for SrtTimestamp
impl Sync for SrtTimestamp
impl Unpin for SrtTimestamp
impl UnsafeUnpin for SrtTimestamp
impl UnwindSafe for SrtTimestamp
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