pub enum MediaType {
Audio,
Video,
Text,
Application,
Message,
Image,
Other(String),
}
Expand description
The Media Type as it appears in the media line (m=
). It’s not a Copy
type since it supports
abstract types, not even defined in any RFC.
Variants§
Trait Implementations§
Source§impl Ord for MediaType
impl Ord for MediaType
Source§impl PartialOrd for MediaType
impl PartialOrd for MediaType
impl 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