Enum rtsp_types::headers::range::NptRange
source · pub enum NptRange {
Empty,
From(NptTime),
FromTo(NptTime, NptTime),
To(NptTime),
}
Expand description
Normal Play Time Range (RFC 7826 section 4.4.2).
Variants§
Empty
Empty range.
From(NptTime)
Range starting at a specific time.
FromTo(NptTime, NptTime)
Range from a specific time to another.
To(NptTime)
Range ending at a specific time.
Trait Implementations§
source§impl FromStr for NptRange
impl FromStr for NptRange
§type Err = HeaderParseError
type Err = HeaderParseError
The associated error which can be returned from parsing.
source§impl Ord for NptRange
impl Ord for NptRange
source§impl PartialEq for NptRange
impl PartialEq for NptRange
source§impl PartialOrd for NptRange
impl PartialOrd for NptRange
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 NptRange
impl Eq for NptRange
impl StructuralPartialEq for NptRange
Auto Trait Implementations§
impl Freeze for NptRange
impl RefUnwindSafe for NptRange
impl Send for NptRange
impl Sync for NptRange
impl Unpin for NptRange
impl UnwindSafe for NptRange
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