Enum rtsp_types::headers::accept::MediaType
source · pub enum MediaType {
Text,
Image,
Audio,
Video,
Application,
Message,
Multipart,
Extension(String),
}Expand description
Media type.
Variants§
Implementations§
Trait Implementations§
source§impl FromStr for MediaType
impl FromStr for MediaType
§type Err = HeaderParseError
type Err = HeaderParseError
The associated error which can be returned from parsing.
source§impl Ord for MediaType
impl Ord for MediaType
source§impl PartialEq for MediaType
impl PartialEq for MediaType
source§impl PartialOrd for MediaType
impl PartialOrd for MediaType
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 Eq for MediaType
impl StructuralPartialEq for MediaType
Auto Trait Implementations§
impl Freeze for MediaType
impl RefUnwindSafe for MediaType
impl Send for MediaType
impl Sync for MediaType
impl Unpin for MediaType
impl UnwindSafe for MediaType
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