[−][src]Struct srt::protocol::TimeStamp
Timestamp in us after creation These wrap every 2^32 microseconds
Implementations
impl TimeStamp
[src]
pub fn from_micros(us: u32) -> Self
[src]
pub fn as_micros(self) -> u32
[src]
pub fn as_secs_f64(self) -> f64
[src]
pub fn as_duration(self) -> Duration
[src]
Trait Implementations
impl Add<TimeSpan> for TimeStamp
[src]
type Output = TimeStamp
The resulting type after applying the +
operator.
fn add(self, rhs: TimeSpan) -> Self::Output
[src]
impl Clone for TimeStamp
[src]
impl Copy for TimeStamp
[src]
impl Debug for TimeStamp
[src]
impl Eq for TimeStamp
[src]
impl Ord for TimeStamp
[src]
fn cmp(&self, other: &TimeStamp) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TimeStamp> for TimeStamp
[src]
impl PartialOrd<TimeStamp> for TimeStamp
[src]
fn partial_cmp(&self, other: &TimeStamp) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for TimeStamp
[src]
impl StructuralPartialEq for TimeStamp
[src]
impl Sub<TimeSpan> for TimeStamp
[src]
type Output = TimeStamp
The resulting type after applying the -
operator.
fn sub(self, rhs: TimeSpan) -> Self::Output
[src]
impl Sub<TimeStamp> for TimeStamp
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeStamp
impl Send for TimeStamp
impl Sync for TimeStamp
impl Unpin for TimeStamp
impl UnwindSafe for TimeStamp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,