Struct gstreamer_sdp::sdp_media::SDPMediaRef
source · pub struct SDPMediaRef(/* private fields */);
Implementations§
source§impl SDPMediaRef
impl SDPMediaRef
pub fn add_attribute(&mut self, key: &str, value: Option<&str>)
pub fn add_bandwidth(&mut self, bwtype: &str, bandwidth: u32)
pub fn add_connection( &mut self, nettype: &str, addrtype: &str, address: &str, ttl: u32, addr_number: u32, )
pub fn add_format(&mut self, format: &str)
pub fn as_text(&self) -> Result<String, BoolError>
pub fn attributes(&self) -> AttributesIter<'_> ⓘ
pub fn formats(&self) -> FormatsIter<'_> ⓘ
pub fn bandwidths(&self) -> BandwidthsIter<'_> ⓘ
pub fn connections(&self) -> ConnectionsIter<'_> ⓘ
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 connections_len(&self) -> u32
pub fn formats_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 caps_from_media(&self, pt: i32) -> Option<Caps>
pub fn connection(&self, idx: u32) -> Option<&SDPConnection>
pub fn format(&self, idx: u32) -> Option<&str>
pub fn information(&self) -> Option<&str>
pub fn key(&self) -> Option<&SDPKey>
pub fn media(&self) -> Option<&str>
pub fn num_ports(&self) -> u32
pub fn port(&self) -> u32
pub fn proto(&self) -> Option<&str>
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_connection( &mut self, idx: Option<u32>, conn: SDPConnection, ) -> Result<(), BoolError>
pub fn insert_format( &mut self, idx: Option<u32>, format: &str, ) -> Result<(), BoolError>
pub fn remove_attribute(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_bandwidth(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_connection(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_format(&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_connection( &mut self, idx: u32, conn: SDPConnection, ) -> Result<(), BoolError>
pub fn replace_format( &mut self, idx: u32, format: &str, ) -> Result<(), BoolError>
pub fn set_information(&mut self, information: &str)
pub fn set_key(&mut self, type_: &str, data: &str)
pub fn set_media(&mut self, med: &str)
pub fn set_port_info(&mut self, port: u32, num_ports: u32)
pub fn set_proto(&mut self, proto: &str)
pub fn set_media_from_caps( caps: &CapsRef, media: &mut SDPMedia, ) -> Result<(), BoolError>
Trait Implementations§
source§impl Borrow<SDPMediaRef> for SDPMedia
impl Borrow<SDPMediaRef> for SDPMedia
source§fn borrow(&self) -> &SDPMediaRef
fn borrow(&self) -> &SDPMediaRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<SDPMediaRef> for SDPMedia
impl BorrowMut<SDPMediaRef> for SDPMedia
source§fn borrow_mut(&mut self) -> &mut SDPMediaRef
fn borrow_mut(&mut self) -> &mut SDPMediaRef
Mutably borrows from an owned value. Read more
source§impl Debug for SDPMediaRef
impl Debug for SDPMediaRef
source§impl Display for SDPMediaRef
impl Display for SDPMediaRef
source§impl ToOwned for SDPMediaRef
impl ToOwned for SDPMediaRef
impl Send for SDPMediaRef
impl Sync for SDPMediaRef
Auto Trait Implementations§
impl Freeze for SDPMediaRef
impl RefUnwindSafe for SDPMediaRef
impl Unpin for SDPMediaRef
impl UnwindSafe for SDPMediaRef
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 more