Struct gstreamer_sdp::sdp_media::SDPMedia
source · pub struct SDPMedia { /* private fields */ }
Expand description
GLib type: Boxed type with copy-on-clone semantics.
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(ptr: &*mut GstSDPMedia) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GstSDPMedia) -> &Self
Borrows the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow_mut(ptr: &mut *mut GstSDPMedia) -> &mut Self
pub unsafe fn from_glib_ptr_borrow_mut(ptr: &mut *mut GstSDPMedia) -> &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§
impl Freeze for SDPMedia
impl RefUnwindSafe for SDPMedia
impl Unpin for SDPMedia
impl UnwindSafe for SDPMedia
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
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