Struct srt_protocol::packet::TimeSpan
source · pub struct TimeSpan(_);
Expand description
Signed duration in us, e.g. RTT
Implementations§
source§impl TimeSpan
impl TimeSpan
pub const MAX: TimeSpan = _
pub const MIN: TimeSpan = _
pub const ZERO: TimeSpan = _
pub fn from_interval(begin: Instant, end: Instant) -> Self
pub const fn from_micros(us: i32) -> Self
pub const fn from_millis(us: i32) -> Self
pub const fn as_micros(self) -> i32
pub const fn abs(self) -> Self
pub fn as_secs_f64(self) -> f64
Trait Implementations§
source§impl Ord for TimeSpan
impl Ord for TimeSpan
source§impl PartialEq<TimeSpan> for TimeSpan
impl PartialEq<TimeSpan> for TimeSpan
source§impl PartialOrd<TimeSpan> for TimeSpan
impl PartialOrd<TimeSpan> for TimeSpan
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TimeSpan
impl Eq for TimeSpan
impl StructuralEq for TimeSpan
impl StructuralPartialEq for TimeSpan
Auto Trait Implementations§
impl RefUnwindSafe for TimeSpan
impl Send for TimeSpan
impl Sync for TimeSpan
impl Unpin for TimeSpan
impl UnwindSafe for TimeSpan
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.