pub struct AbsSendTimeExtension {
pub timestamp: u64,
}
Expand description
AbsSendTimeExtension is a extension payload format in http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
Fields§
§timestamp: u64
Implementations§
source§impl AbsSendTimeExtension
impl AbsSendTimeExtension
sourcepub fn estimate(&self, receive: SystemTime) -> SystemTime
pub fn estimate(&self, receive: SystemTime) -> SystemTime
Estimate absolute send time according to the receive time. Note that if the transmission delay is larger than 64 seconds, estimated time will be wrong.
sourcepub fn new(send_time: SystemTime) -> Self
pub fn new(send_time: SystemTime) -> Self
NewAbsSendTimeExtension makes new AbsSendTimeExtension from time.Time.
Trait Implementations§
source§impl Clone for AbsSendTimeExtension
impl Clone for AbsSendTimeExtension
source§fn clone(&self) -> AbsSendTimeExtension
fn clone(&self) -> AbsSendTimeExtension
Returns a copy 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 moresource§impl Debug for AbsSendTimeExtension
impl Debug for AbsSendTimeExtension
source§impl Default for AbsSendTimeExtension
impl Default for AbsSendTimeExtension
source§fn default() -> AbsSendTimeExtension
fn default() -> AbsSendTimeExtension
Returns the “default value” for a type. Read more
source§impl Marshal for AbsSendTimeExtension
impl Marshal for AbsSendTimeExtension
source§impl MarshalSize for AbsSendTimeExtension
impl MarshalSize for AbsSendTimeExtension
source§fn marshal_size(&self) -> usize
fn marshal_size(&self) -> usize
MarshalSize returns the size of the AbsSendTimeExtension once marshaled.
source§impl PartialEq for AbsSendTimeExtension
impl PartialEq for AbsSendTimeExtension
source§fn eq(&self, other: &AbsSendTimeExtension) -> bool
fn eq(&self, other: &AbsSendTimeExtension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Unmarshal for AbsSendTimeExtension
impl Unmarshal for AbsSendTimeExtension
impl Copy for AbsSendTimeExtension
impl Eq for AbsSendTimeExtension
impl StructuralPartialEq for AbsSendTimeExtension
Auto Trait Implementations§
impl RefUnwindSafe for AbsSendTimeExtension
impl Send for AbsSendTimeExtension
impl Sync for AbsSendTimeExtension
impl Unpin for AbsSendTimeExtension
impl UnwindSafe for AbsSendTimeExtension
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