pub struct SDPMedia { /* private fields */ }

Implementations§

source§

impl SDPMedia

source

pub fn as_ptr(&self) -> *mut GstSDPMedia

Return the inner pointer to the underlying C value.

source

pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const *const GstSDPMedia ) -> &'a Self

Borrows the underlying C value.

source

pub unsafe fn from_glib_ptr_borrow_mut<'a>( ptr: *mut *mut GstSDPMedia ) -> &'a mut Self

Borrows the underlying C value mutably.

source§

impl SDPMedia

source

pub fn new() -> Self

Methods from Deref<Target = SDPMediaRef>§

source

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

source

pub fn add_bandwidth(&mut self, bwtype: &str, bandwidth: u32)

source

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

source

pub fn add_format(&mut self, format: &str)

source

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

source

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

source

pub fn formats(&self) -> FormatsIter<'_>

source

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

source

pub fn connections(&self) -> ConnectionsIter<'_>

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

source

pub fn formats_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 caps_from_media(&self, pt: i32) -> Option<Caps>

source

pub fn connection(&self, idx: u32) -> Option<&SDPConnection>

source

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

source

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

source

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

source

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

source

pub fn num_ports(&self) -> u32

source

pub fn port(&self) -> u32

source

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

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_connection( &mut self, idx: Option<u32>, conn: SDPConnection ) -> Result<(), BoolError>

source

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

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

source

pub fn remove_format(&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_connection( &mut self, idx: u32, conn: SDPConnection ) -> Result<(), BoolError>

source

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

source

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

source

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

source

pub fn set_media(&mut self, med: &str)

source

pub fn set_port_info(&mut self, port: u32, num_ports: u32)

source

pub fn set_proto(&mut self, proto: &str)

Trait Implementations§

source§

impl Borrow<SDPMediaRef> for SDPMedia

source§

fn borrow(&self) -> &SDPMediaRef

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<SDPMediaRef> for SDPMedia

source§

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

Mutably borrows from an owned value. Read more
source§

impl Clone for SDPMedia

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SDPMedia

source§

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

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

impl Default for SDPMedia

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Deref for SDPMedia

§

type Target = SDPMediaRef

The resulting type after dereferencing.
source§

fn deref(&self) -> &SDPMediaRef

Dereferences the value.
source§

impl DerefMut for SDPMedia

source§

fn deref_mut(&mut self) -> &mut SDPMediaRef

Mutably dereferences the value.
source§

impl Display for SDPMedia

source§

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

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

impl Hash for SDPMedia

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for SDPMedia

source§

fn cmp(&self, other: &SDPMedia) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for SDPMedia

source§

fn eq(&self, other: &SDPMedia) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for SDPMedia

source§

fn partial_cmp(&self, other: &SDPMedia) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for SDPMedia

source§

impl Send for SDPMedia

source§

impl StructuralPartialEq for SDPMedia

source§

impl Sync for SDPMedia

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> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

source§

unsafe fn from_glib_none_num_as_vec(ptr: *const GList, num: usize) -> Vec<T>

source§

unsafe fn from_glib_container_num_as_vec(_: *const GList, _: usize) -> Vec<T>

source§

unsafe fn from_glib_full_num_as_vec(_: *const GList, _: usize) -> Vec<T>

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

source§

unsafe fn from_glib_none_num_as_vec(ptr: *const GPtrArray, num: usize) -> Vec<T>

source§

unsafe fn from_glib_container_num_as_vec( _: *const GPtrArray, _: usize ) -> Vec<T>

source§

unsafe fn from_glib_full_num_as_vec(_: *const GPtrArray, _: usize) -> Vec<T>

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

source§

unsafe fn from_glib_none_num_as_vec(ptr: *const GSList, num: usize) -> Vec<T>

source§

unsafe fn from_glib_container_num_as_vec(_: *const GSList, _: usize) -> Vec<T>

source§

unsafe fn from_glib_full_num_as_vec(_: *const GSList, _: usize) -> Vec<T>

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

source§

unsafe fn from_glib_none_num_as_vec(ptr: *mut GList, num: usize) -> Vec<T>

source§

unsafe fn from_glib_container_num_as_vec(ptr: *mut GList, num: usize) -> Vec<T>

source§

unsafe fn from_glib_full_num_as_vec(ptr: *mut GList, num: usize) -> Vec<T>

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

source§

unsafe fn from_glib_none_num_as_vec(ptr: *mut GPtrArray, num: usize) -> Vec<T>

source§

unsafe fn from_glib_container_num_as_vec( ptr: *mut GPtrArray, num: usize ) -> Vec<T>

source§

unsafe fn from_glib_full_num_as_vec(ptr: *mut GPtrArray, num: usize) -> Vec<T>

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

source§

unsafe fn from_glib_none_num_as_vec(ptr: *mut GSList, num: usize) -> Vec<T>

source§

unsafe fn from_glib_container_num_as_vec(ptr: *mut GSList, num: usize) -> Vec<T>

source§

unsafe fn from_glib_full_num_as_vec(ptr: *mut GSList, num: usize) -> Vec<T>

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

source§

unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>

source§

unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>

source§

unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for T

source§

unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>

source§

unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>

source§

unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

source§

unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>

source§

unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>

source§

unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

source§

unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>

source§

unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>

source§

unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for T

source§

unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>

source§

unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>

source§

unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

source§

unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>

source§

unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>

source§

unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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> TransparentType for T

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.