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

Implementations§

source§

impl SDPMessageRef

source

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

source

pub fn add_email(&mut self, email: &str)

source

pub fn add_media(&mut self, media: SDPMedia)

source

pub fn add_phone(&mut self, phone: &str)

source

pub fn add_time(&mut self, start: &str, stop: &str, repeat: &[&str])

source

pub fn add_zone(&mut self, adj_time: &str, typed_time: &str)

source

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

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 dump(&self)

source

pub fn emails_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 connection(&self) -> Option<&SDPConnection>

source

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

source

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

source

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

source

pub fn media(&self, idx: u32) -> Option<&SDPMediaRef>

source

pub fn media_mut(&mut self, idx: u32) -> Option<&mut SDPMediaRef>

source

pub fn origin(&self) -> Option<&SDPOrigin>

source

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

source

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

source

pub fn time(&self, idx: u32) -> Option<&SDPTime>

source

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

source

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

source

pub fn zone(&self, idx: u32) -> Option<&SDPZone>

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_email( &mut self, idx: Option<u32>, email: &str ) -> Result<(), BoolError>

source

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

source

pub fn insert_time( &mut self, idx: Option<u32>, time: SDPTime ) -> Result<(), BoolError>

source

pub fn insert_zone( &mut self, idx: Option<u32>, zone: SDPZone ) -> Result<(), BoolError>

source

pub fn medias_len(&self) -> u32

source

pub fn phones_len(&self) -> u32

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_email(&mut self, idx: u32) -> Result<(), BoolError>

source

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

source

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

source

pub fn remove_zone(&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_email(&mut self, idx: u32, email: &str) -> Result<(), BoolError>

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn set_origin( &mut self, username: &str, sess_id: &str, sess_version: &str, nettype: &str, addrtype: &str, addr: &str )

source

pub fn set_session_name(&mut self, session_name: &str)

source

pub fn set_uri(&mut self, uri: &str)

source

pub fn set_version(&mut self, version: &str)

source

pub fn times_len(&self) -> u32

source

pub fn zones_len(&self) -> u32

source

pub fn as_uri(&self, scheme: &str) -> Result<String, BoolError>

source

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

source

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

source

pub fn emails(&self) -> EmailsIter<'_>

source

pub fn medias(&self) -> MediasIter<'_>

source

pub fn medias_mut(&mut self) -> MediasIterMut<'_>

source

pub fn phones(&self) -> PhonesIter<'_>

source

pub fn times(&self) -> TimesIter<'_>

source

pub fn zones(&self) -> ZonesIter<'_>

Trait Implementations§

source§

impl Borrow<SDPMessageRef> for SDPMessage

source§

fn borrow(&self) -> &SDPMessageRef

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<SDPMessageRef> for SDPMessage

source§

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

Mutably borrows from an owned value. Read more
source§

impl Debug for SDPMessageRef

source§

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

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

impl Display for SDPMessageRef

source§

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

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

impl<'a> FromValue<'a> for &'a SDPMessageRef

§

type Checker = GenericValueTypeOrNoneChecker<&'a SDPMessageRef>

Value type checker.
source§

unsafe fn from_value(value: &'a Value) -> Self

Get the contained value from a Value. Read more
source§

impl StaticType for SDPMessageRef

source§

fn static_type() -> Type

Returns the type identifier of Self.
source§

impl ToOwned for SDPMessageRef

§

type Owned = SDPMessage

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> SDPMessage

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 ToValue for SDPMessageRef

source§

fn to_value(&self) -> Value

Convert a value to a Value.
source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
source§

impl ToValueOptional for SDPMessageRef

source§

fn to_value_optional(s: Option<&Self>) -> Value

Convert an Option to a Value.
source§

impl Send for SDPMessageRef

source§

impl Sync for SDPMessageRef

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> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
source§

impl<T> ToSendValue for T
where T: Send + ToValue + ?Sized,

source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
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.