pub struct MediaDescription { /* private fields */ }Expand description
Media description.
Implementations§
Source§impl MediaDescription
impl MediaDescription
Sourcepub fn builder<T, U>(
media_type: T,
port: u16,
protocol: U,
) -> MediaDescriptionBuilder
pub fn builder<T, U>( media_type: T, port: u16, protocol: U, ) -> MediaDescriptionBuilder
Get a new media description builder.
Sourcepub fn media_type(&self) -> &str
pub fn media_type(&self) -> &str
Get the media type (e.g. “audio” or “video”).
Sourcepub fn port_count(&self) -> Option<u16>
pub fn port_count(&self) -> Option<u16>
Get the number of ports (if specified).
Sourcepub fn formats(&self) -> &[MediaFormat] ⓘ
pub fn formats(&self) -> &[MediaFormat] ⓘ
Get the media formats.
Sourcepub fn encryption_key(&self) -> Option<&EncryptionKey>
pub fn encryption_key(&self) -> Option<&EncryptionKey>
Get encryption key.
Sourcepub fn connection(&self) -> &[ConnectionInfo]
pub fn connection(&self) -> &[ConnectionInfo]
Get the connection info.
Sourcepub fn attributes(&self) -> &Attributes
pub fn attributes(&self) -> &Attributes
Get the attributes.
Trait Implementations§
Source§impl Clone for MediaDescription
impl Clone for MediaDescription
Source§fn clone(&self) -> MediaDescription
fn clone(&self) -> MediaDescription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for MediaDescription
impl Display for MediaDescription
Auto Trait Implementations§
impl Freeze for MediaDescription
impl RefUnwindSafe for MediaDescription
impl Send for MediaDescription
impl Sync for MediaDescription
impl Unpin for MediaDescription
impl UnwindSafe for MediaDescription
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