Struct gstreamer_sdp::sdp_message::SDPMessageRef
source · pub struct SDPMessageRef(/* private fields */);
Implementations§
source§impl SDPMessageRef
impl SDPMessageRef
pub fn add_attribute(&mut self, key: &str, value: Option<&str>)
pub fn add_email(&mut self, email: &str)
pub fn add_media(&mut self, media: SDPMedia)
pub fn add_phone(&mut self, phone: &str)
pub fn add_time(&mut self, start: &str, stop: &str, repeat: &[&str])
pub fn add_zone(&mut self, adj_time: &str, typed_time: &str)
pub fn as_text(&self) -> Result<String, BoolError>
pub fn attributes_len(&self) -> u32
pub fn attributes_to_caps(&self, caps: &mut CapsRef) -> Result<(), BoolError>
pub fn bandwidths_len(&self) -> u32
pub fn dump(&self)
pub fn emails_len(&self) -> u32
pub fn attribute(&self, idx: u32) -> Option<&SDPAttribute>
pub fn attribute_val(&self, key: &str) -> Option<&str>
pub fn attribute_val_n(&self, key: &str, nth: u32) -> Option<&str>
pub fn bandwidth(&self, idx: u32) -> Option<&SDPBandwidth>
pub fn connection(&self) -> Option<&SDPConnection>
pub fn email(&self, idx: u32) -> Option<&str>
pub fn information(&self) -> Option<&str>
pub fn key(&self) -> Option<&SDPKey>
pub fn media(&self, idx: u32) -> Option<&SDPMediaRef>
pub fn media_mut(&mut self, idx: u32) -> Option<&mut SDPMediaRef>
pub fn origin(&self) -> Option<&SDPOrigin>
pub fn phone(&self, idx: u32) -> Option<&str>
pub fn session_name(&self) -> Option<&str>
pub fn time(&self, idx: u32) -> Option<&SDPTime>
pub fn uri(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
pub fn zone(&self, idx: u32) -> Option<&SDPZone>
pub fn insert_attribute( &mut self, idx: Option<u32>, attr: SDPAttribute, ) -> Result<(), BoolError>
pub fn insert_bandwidth( &mut self, idx: Option<u32>, bw: SDPBandwidth, ) -> Result<(), BoolError>
pub fn insert_email( &mut self, idx: Option<u32>, email: &str, ) -> Result<(), BoolError>
pub fn insert_phone( &mut self, idx: Option<u32>, phone: &str, ) -> Result<(), BoolError>
pub fn insert_time( &mut self, idx: Option<u32>, time: SDPTime, ) -> Result<(), BoolError>
pub fn insert_zone( &mut self, idx: Option<u32>, zone: SDPZone, ) -> Result<(), BoolError>
pub fn medias_len(&self) -> u32
pub fn phones_len(&self) -> u32
pub fn remove_attribute(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_bandwidth(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_email(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_phone(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_time(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_zone(&mut self, idx: u32) -> Result<(), BoolError>
pub fn replace_attribute( &mut self, idx: u32, attr: SDPAttribute, ) -> Result<(), BoolError>
pub fn replace_bandwidth( &mut self, idx: u32, bw: SDPBandwidth, ) -> Result<(), BoolError>
pub fn replace_email(&mut self, idx: u32, email: &str) -> Result<(), BoolError>
pub fn replace_phone(&mut self, idx: u32, phone: &str) -> Result<(), BoolError>
pub fn replace_time(&mut self, idx: u32, time: SDPTime) -> Result<(), BoolError>
pub fn replace_zone(&mut self, idx: u32, zone: SDPZone) -> Result<(), BoolError>
pub fn set_connection( &mut self, nettype: &str, addrtype: &str, address: &str, ttl: u32, addr_number: u32, )
pub fn set_information(&mut self, information: &str)
pub fn set_key(&mut self, type_: &str, data: &str)
pub fn set_origin( &mut self, username: &str, sess_id: &str, sess_version: &str, nettype: &str, addrtype: &str, addr: &str, )
pub fn set_session_name(&mut self, session_name: &str)
pub fn set_uri(&mut self, uri: &str)
pub fn set_version(&mut self, version: &str)
pub fn times_len(&self) -> u32
pub fn zones_len(&self) -> u32
pub fn as_uri(&self, scheme: &str) -> Result<String, BoolError>
pub fn attributes(&self) -> AttributesIter<'_> ⓘ
pub fn bandwidths(&self) -> BandwidthsIter<'_> ⓘ
pub fn emails(&self) -> EmailsIter<'_> ⓘ
pub fn medias(&self) -> MediasIter<'_> ⓘ
pub fn medias_mut(&mut self) -> MediasIterMut<'_> ⓘ
pub fn phones(&self) -> PhonesIter<'_> ⓘ
pub fn times(&self) -> TimesIter<'_> ⓘ
pub fn zones(&self) -> ZonesIter<'_> ⓘ
Trait Implementations§
source§impl Borrow<SDPMessageRef> for SDPMessage
impl Borrow<SDPMessageRef> for SDPMessage
source§fn borrow(&self) -> &SDPMessageRef
fn borrow(&self) -> &SDPMessageRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<SDPMessageRef> for SDPMessage
impl BorrowMut<SDPMessageRef> for SDPMessage
source§fn borrow_mut(&mut self) -> &mut SDPMessageRef
fn borrow_mut(&mut self) -> &mut SDPMessageRef
Mutably borrows from an owned value. Read more
source§impl Debug for SDPMessageRef
impl Debug for SDPMessageRef
source§impl Display for SDPMessageRef
impl Display for SDPMessageRef
source§impl<'a> FromValue<'a> for &'a SDPMessageRef
impl<'a> FromValue<'a> for &'a SDPMessageRef
§type Checker = GenericValueTypeOrNoneChecker<&'a SDPMessageRef>
type Checker = GenericValueTypeOrNoneChecker<&'a SDPMessageRef>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl StaticType for SDPMessageRef
impl StaticType for SDPMessageRef
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToOwned for SDPMessageRef
impl ToOwned for SDPMessageRef
§type Owned = SDPMessage
type Owned = SDPMessage
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> SDPMessage
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)
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
impl ToValue for SDPMessageRef
source§impl ToValueOptional for SDPMessageRef
impl ToValueOptional for SDPMessageRef
impl Send for SDPMessageRef
impl Sync for SDPMessageRef
Auto Trait Implementations§
impl Freeze for SDPMessageRef
impl RefUnwindSafe for SDPMessageRef
impl Unpin for SDPMessageRef
impl UnwindSafe for SDPMessageRef
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.