[][src]Struct rml_rtmp::time::RtmpTimestamp

pub struct RtmpTimestamp {
    pub value: u32,
}

The representation of a RTMP timestamp

Fields

value: u32

The time (as milliseconds from an unknown epoch) being represented by the timestamp

Methods

impl RtmpTimestamp[src]

pub fn new(initial_value: u32) -> Self[src]

Creates a new timestamp with the specified time value

pub fn set(&mut self, new_value: u32)[src]

Sets the timestamp to a new time value

Trait Implementations

impl Add<RtmpTimestamp> for RtmpTimestamp[src]

type Output = RtmpTimestamp

The resulting type after applying the + operator.

impl Add<u32> for RtmpTimestamp[src]

type Output = RtmpTimestamp

The resulting type after applying the + operator.

impl Clone for RtmpTimestamp[src]

impl Copy for RtmpTimestamp[src]

impl Debug for RtmpTimestamp[src]

impl Eq for RtmpTimestamp[src]

impl Ord for RtmpTimestamp[src]

impl PartialEq<RtmpTimestamp> for RtmpTimestamp[src]

impl PartialEq<RtmpTimestamp> for u32[src]

impl PartialEq<u32> for RtmpTimestamp[src]

impl PartialOrd<RtmpTimestamp> for RtmpTimestamp[src]

impl PartialOrd<RtmpTimestamp> for u32[src]

impl PartialOrd<u32> for RtmpTimestamp[src]

impl StructuralEq for RtmpTimestamp[src]

impl StructuralPartialEq for RtmpTimestamp[src]

impl Sub<RtmpTimestamp> for RtmpTimestamp[src]

type Output = RtmpTimestamp

The resulting type after applying the - operator.

impl Sub<u32> for RtmpTimestamp[src]

type Output = RtmpTimestamp

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.