Enum rtsp_types::headers::range::NptTime
source · pub enum NptTime {
Now,
Seconds(u64, Option<u32>),
Hms(u64, u8, u8, Option<u32>),
}Expand description
Normal Play Time (RFC 7826 section 4.4.2).
Variants§
Now
Now.
Seconds(u64, Option<u32>)
Seconds and nanoseconds.
Hms(u64, u8, u8, Option<u32>)
Hours, minutes, seconds and nanoseconds.
Trait Implementations§
source§impl FromStr for NptTime
impl FromStr for NptTime
§type Err = HeaderParseError
type Err = HeaderParseError
The associated error which can be returned from parsing.
source§impl Ord for NptTime
impl Ord for NptTime
source§impl PartialEq for NptTime
impl PartialEq for NptTime
source§impl PartialOrd for NptTime
impl PartialOrd for NptTime
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 NptTime
impl Eq for NptTime
impl StructuralPartialEq for NptTime
Auto Trait Implementations§
impl Freeze for NptTime
impl RefUnwindSafe for NptTime
impl Send for NptTime
impl Sync for NptTime
impl Unpin for NptTime
impl UnwindSafe for NptTime
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more