Struct gstreamer_sdp::sdp_media::SDPMedia
source · pub struct SDPMedia { /* private fields */ }
Implementations§
source§impl SDPMedia
impl SDPMedia
sourcepub fn as_ptr(&self) -> *mut GstSDPMedia
pub fn as_ptr(&self) -> *mut GstSDPMedia
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow<'a>(
ptr: *const *const GstSDPMedia
) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const *const GstSDPMedia ) -> &'a Self
Borrows the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow_mut<'a>(
ptr: *mut *mut GstSDPMedia
) -> &'a mut Self
pub unsafe fn from_glib_ptr_borrow_mut<'a>( ptr: *mut *mut GstSDPMedia ) -> &'a mut Self
Borrows the underlying C value mutably.
Methods from Deref<Target = 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)
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 Deref for SDPMedia
impl Deref for SDPMedia
§type Target = SDPMediaRef
type Target = SDPMediaRef
The resulting type after dereferencing.
source§fn deref(&self) -> &SDPMediaRef
fn deref(&self) -> &SDPMediaRef
Dereferences the value.
source§impl DerefMut for SDPMedia
impl DerefMut for SDPMedia
source§fn deref_mut(&mut self) -> &mut SDPMediaRef
fn deref_mut(&mut self) -> &mut SDPMediaRef
Mutably dereferences the value.
source§impl Ord for SDPMedia
impl Ord for SDPMedia
source§impl PartialEq for SDPMedia
impl PartialEq for SDPMedia
source§impl PartialOrd for SDPMedia
impl PartialOrd for SDPMedia
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SDPMedia
impl Send for SDPMedia
impl StructuralPartialEq for SDPMedia
impl Sync for SDPMedia
Auto Trait Implementations§
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