pub struct SDPMediaRef(/* private fields */);

Implementations§

source§

impl SDPMediaRef

source

pub fn add_attribute(&mut self, key: &str, value: Option<&str>)

source

pub fn add_bandwidth(&mut self, bwtype: &str, bandwidth: u32)

source

pub fn add_connection( &mut self, nettype: &str, addrtype: &str, address: &str, ttl: u32, addr_number: u32 )

source

pub fn add_format(&mut self, format: &str)

source

pub fn as_text(&self) -> Result<String, BoolError>

source

pub fn attributes(&self) -> AttributesIter<'_>

source

pub fn formats(&self) -> FormatsIter<'_>

source

pub fn bandwidths(&self) -> BandwidthsIter<'_>

source

pub fn connections(&self) -> ConnectionsIter<'_>

source

pub fn attributes_len(&self) -> u32

source

pub fn attributes_to_caps(&self, caps: &mut CapsRef) -> Result<(), BoolError>

source

pub fn bandwidths_len(&self) -> u32

source

pub fn connections_len(&self) -> u32

source

pub fn formats_len(&self) -> u32

source

pub fn attribute(&self, idx: u32) -> Option<&SDPAttribute>

source

pub fn attribute_val(&self, key: &str) -> Option<&str>

source

pub fn attribute_val_n(&self, key: &str, nth: u32) -> Option<&str>

source

pub fn bandwidth(&self, idx: u32) -> Option<&SDPBandwidth>

source

pub fn caps_from_media(&self, pt: i32) -> Option<Caps>

source

pub fn connection(&self, idx: u32) -> Option<&SDPConnection>

source

pub fn format(&self, idx: u32) -> Option<&str>

source

pub fn information(&self) -> Option<&str>

source

pub fn key(&self) -> Option<&SDPKey>

source

pub fn media(&self) -> Option<&str>

source

pub fn num_ports(&self) -> u32

source

pub fn port(&self) -> u32

source

pub fn proto(&self) -> Option<&str>

source

pub fn insert_attribute( &mut self, idx: Option<u32>, attr: SDPAttribute ) -> Result<(), BoolError>

source

pub fn insert_bandwidth( &mut self, idx: Option<u32>, bw: SDPBandwidth ) -> Result<(), BoolError>

source

pub fn insert_connection( &mut self, idx: Option<u32>, conn: SDPConnection ) -> Result<(), BoolError>

source

pub fn insert_format( &mut self, idx: Option<u32>, format: &str ) -> Result<(), BoolError>

source

pub fn remove_attribute(&mut self, idx: u32) -> Result<(), BoolError>

source

pub fn remove_bandwidth(&mut self, idx: u32) -> Result<(), BoolError>

source

pub fn remove_connection(&mut self, idx: u32) -> Result<(), BoolError>

source

pub fn remove_format(&mut self, idx: u32) -> Result<(), BoolError>

source

pub fn replace_attribute( &mut self, idx: u32, attr: SDPAttribute ) -> Result<(), BoolError>

source

pub fn replace_bandwidth( &mut self, idx: u32, bw: SDPBandwidth ) -> Result<(), BoolError>

source

pub fn replace_connection( &mut self, idx: u32, conn: SDPConnection ) -> Result<(), BoolError>

source

pub fn replace_format( &mut self, idx: u32, format: &str ) -> Result<(), BoolError>

source

pub fn set_information(&mut self, information: &str)

source

pub fn set_key(&mut self, type_: &str, data: &str)

source

pub fn set_media(&mut self, med: &str)

source

pub fn set_port_info(&mut self, port: u32, num_ports: u32)

source

pub fn set_proto(&mut self, proto: &str)

source

pub fn set_media_from_caps( caps: &CapsRef, media: &mut SDPMedia ) -> Result<(), BoolError>

Trait Implementations§

source§

impl Borrow<SDPMediaRef> for SDPMedia

source§

fn borrow(&self) -> &SDPMediaRef

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<SDPMediaRef> for SDPMedia

source§

fn borrow_mut(&mut self) -> &mut SDPMediaRef

Mutably borrows from an owned value. Read more
source§

impl Debug for SDPMediaRef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SDPMediaRef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl ToOwned for SDPMediaRef

§

type Owned = SDPMedia

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> SDPMedia

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl Send for SDPMediaRef

source§

impl Sync for SDPMediaRef

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.