[][src]Struct srt_protocol::protocol::TimeSpan

pub struct TimeSpan(_);

Signed duration in us, e.g. RTT

Implementations

impl TimeSpan[src]

pub fn from_micros(us: i32) -> Self[src]

pub fn as_micros(self) -> i32[src]

pub fn abs(self) -> Self[src]

pub fn as_secs_f64(self) -> f64[src]

Trait Implementations

impl Add<TimeSpan> for TimeStamp[src]

type Output = TimeStamp

The resulting type after applying the + operator.

impl Add<TimeSpan> for TimeSpan[src]

type Output = TimeSpan

The resulting type after applying the + operator.

impl Clone for TimeSpan[src]

impl Copy for TimeSpan[src]

impl Debug for TimeSpan[src]

impl Div<i32> for TimeSpan[src]

type Output = TimeSpan

The resulting type after applying the / operator.

impl Eq for TimeSpan[src]

impl Mul<i32> for TimeSpan[src]

type Output = TimeSpan

The resulting type after applying the * operator.

impl Neg for TimeSpan[src]

type Output = TimeSpan

The resulting type after applying the - operator.

impl Ord for TimeSpan[src]

impl PartialEq<TimeSpan> for TimeSpan[src]

impl PartialOrd<TimeSpan> for TimeSpan[src]

impl StructuralEq for TimeSpan[src]

impl StructuralPartialEq for TimeSpan[src]

impl Sub<TimeSpan> for TimeStamp[src]

type Output = TimeStamp

The resulting type after applying the - operator.

impl Sub<TimeSpan> for TimeSpan[src]

type Output = TimeSpan

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,