Enum rtsp_types::headers::range::Range
source · pub enum Range {
Npt(NptRange),
Smpte(SmpteRange),
Utc(UtcRange),
Other(String),
}Expand description
Range header (RFC 7826 section 18.40).
Variants§
Npt(NptRange)
Normal Play Time Range (RFC 7826 section 4.4.2).
Smpte(SmpteRange)
SMPTE-Relative Timecode Range (RFC 7826 section 4.4.1).
Utc(UtcRange)
Absolute Time (UTC) Time Range (RFC 7826 section 4.4.3).
Other(String)
Other time range.
Trait Implementations§
source§impl FromStr for Range
impl FromStr for Range
§type Err = HeaderParseError
type Err = HeaderParseError
The associated error which can be returned from parsing.
source§impl Ord for Range
impl Ord for Range
source§impl PartialEq for Range
impl PartialEq for Range
source§impl PartialOrd for Range
impl PartialOrd for Range
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 moresource§impl TypedHeader for Range
impl TypedHeader for Range
source§fn from_headers(
headers: impl AsRef<Headers>,
) -> Result<Option<Self>, HeaderParseError>
fn from_headers( headers: impl AsRef<Headers>, ) -> Result<Option<Self>, HeaderParseError>
Parses the header from headers.
source§fn insert_into(&self, headers: impl AsMut<Headers>)
fn insert_into(&self, headers: impl AsMut<Headers>)
Inserts the header into headers.
impl Eq for Range
impl StructuralPartialEq for Range
Auto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnwindSafe for Range
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