[−][src]Struct rml_rtmp::time::RtmpTimestamp
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.
fn add(self, other: RtmpTimestamp) -> Self
[src]
impl Add<u32> for RtmpTimestamp
[src]
type Output = RtmpTimestamp
The resulting type after applying the +
operator.
fn add(self, other: u32) -> Self
[src]
impl Clone for RtmpTimestamp
[src]
fn clone(&self) -> RtmpTimestamp
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RtmpTimestamp
[src]
impl Debug for RtmpTimestamp
[src]
impl Eq for RtmpTimestamp
[src]
impl Ord for RtmpTimestamp
[src]
fn cmp(&self, other: &Self) -> 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<RtmpTimestamp> for RtmpTimestamp
[src]
fn eq(&self, other: &RtmpTimestamp) -> bool
[src]
fn ne(&self, other: &RtmpTimestamp) -> bool
[src]
impl PartialEq<RtmpTimestamp> for u32
[src]
fn eq(&self, other: &RtmpTimestamp) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<u32> for RtmpTimestamp
[src]
impl PartialOrd<RtmpTimestamp> for RtmpTimestamp
[src]
fn partial_cmp(&self, other: &Self) -> 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 PartialOrd<RtmpTimestamp> for u32
[src]
fn partial_cmp(&self, other: &RtmpTimestamp) -> 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 PartialOrd<u32> for RtmpTimestamp
[src]
fn partial_cmp(&self, other: &u32) -> 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 RtmpTimestamp
[src]
impl StructuralPartialEq for RtmpTimestamp
[src]
impl Sub<RtmpTimestamp> for RtmpTimestamp
[src]
type Output = RtmpTimestamp
The resulting type after applying the -
operator.
fn sub(self, other: RtmpTimestamp) -> Self
[src]
impl Sub<u32> for RtmpTimestamp
[src]
type Output = RtmpTimestamp
The resulting type after applying the -
operator.
fn sub(self, other: u32) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for RtmpTimestamp
impl Send for RtmpTimestamp
impl Sync for RtmpTimestamp
impl Unpin for RtmpTimestamp
impl UnwindSafe for RtmpTimestamp
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> Same<T> for T
type Output = T
Should always be Self
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>,