#[non_exhaustive]pub enum SdpMediaType {
Audio,
Video,
Application,
Text,
Message,
Other(String),
}Expand description
SDP media type from an m= line.
Unrecognized types are represented as Other rather
than hard-failing the parse — FreeSWITCH ignores media sections it does not
recognize (BFCP, MSRP, datachannel, etc.), and a converter must not drop
the whole session over an unknown m= line.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Audio
m=audio
Video
m=video
Application
m=application — used for BFCP, MSRP, datachannel, etc.
Text
m=text — used for MSRP text streams.
Message
m=message — used for MSRP message streams.
Other(String)
Any other m= media type not recognized above.
Trait Implementations§
Source§impl Clone for SdpMediaType
impl Clone for SdpMediaType
Source§fn clone(&self) -> SdpMediaType
fn clone(&self) -> SdpMediaType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SdpMediaType
impl Debug for SdpMediaType
Source§impl Display for SdpMediaType
impl Display for SdpMediaType
impl Eq for SdpMediaType
Source§impl FromStr for SdpMediaType
impl FromStr for SdpMediaType
Source§impl Hash for SdpMediaType
impl Hash for SdpMediaType
Source§impl PartialEq for SdpMediaType
impl PartialEq for SdpMediaType
impl StructuralPartialEq for SdpMediaType
Auto Trait Implementations§
impl Freeze for SdpMediaType
impl RefUnwindSafe for SdpMediaType
impl Send for SdpMediaType
impl Sync for SdpMediaType
impl Unpin for SdpMediaType
impl UnsafeUnpin for SdpMediaType
impl UnwindSafe for SdpMediaType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.