pub struct SDPMessage { /* private fields */ }

Implementations§

source§

impl SDPMessage

source

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

Return the inner pointer to the underlying C value.

source

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

Borrows the underlying C value.

source

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

Borrows the underlying C value mutably.

source§

impl SDPMessage

source

pub fn new() -> SDPMessage

source

pub fn parse_buffer(data: &[u8]) -> Result<Self, BoolError>

source

pub fn parse_uri(uri: &str) -> Result<Self, BoolError>

Methods from Deref<Target = SDPMessageRef>§

source

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

source

pub fn add_email(&mut self, email: &str)

source

pub fn add_media(&mut self, media: SDPMedia)

source

pub fn add_phone(&mut self, phone: &str)

source

pub fn add_time(&mut self, start: &str, stop: &str, repeat: &[&str])

source

pub fn add_zone(&mut self, adj_time: &str, typed_time: &str)

source

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

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

source

pub fn emails_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 connection(&self) -> Option<&SDPConnection>

source

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

source

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

source

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

source

pub fn media(&self, idx: u32) -> Option<&SDPMediaRef>

source

pub fn media_mut(&mut self, idx: u32) -> Option<&mut SDPMediaRef>

source

pub fn origin(&self) -> Option<&SDPOrigin>

source

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

source

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

source

pub fn time(&self, idx: u32) -> Option<&SDPTime>

source

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

source

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

source

pub fn zone(&self, idx: u32) -> Option<&SDPZone>

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_email( &mut self, idx: Option<u32>, email: &str ) -> Result<(), BoolError>

source

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

source

pub fn insert_time( &mut self, idx: Option<u32>, time: SDPTime ) -> Result<(), BoolError>

source

pub fn insert_zone( &mut self, idx: Option<u32>, zone: SDPZone ) -> Result<(), BoolError>

source

pub fn medias_len(&self) -> u32

source

pub fn phones_len(&self) -> u32

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

source

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

source

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

source

pub fn remove_zone(&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_email(&mut self, idx: u32, email: &str) -> Result<(), BoolError>

source

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

source

pub fn replace_time(&mut self, idx: u32, time: SDPTime) -> Result<(), BoolError>

source

pub fn replace_zone(&mut self, idx: u32, zone: SDPZone) -> Result<(), BoolError>

source

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

source

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

source

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

source

pub fn set_origin( &mut self, username: &str, sess_id: &str, sess_version: &str, nettype: &str, addrtype: &str, addr: &str )

source

pub fn set_session_name(&mut self, session_name: &str)

source

pub fn set_uri(&mut self, uri: &str)

source

pub fn set_version(&mut self, version: &str)

source

pub fn times_len(&self) -> u32

source

pub fn zones_len(&self) -> u32

source

pub fn as_uri(&self, scheme: &str) -> Result<String, BoolError>

source

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

source

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

source

pub fn emails(&self) -> EmailsIter<'_>

source

pub fn medias(&self) -> MediasIter<'_>

source

pub fn medias_mut(&mut self) -> MediasIterMut<'_>

source

pub fn phones(&self) -> PhonesIter<'_>

source

pub fn times(&self) -> TimesIter<'_>

source

pub fn zones(&self) -> ZonesIter<'_>

Trait Implementations§

source§

impl Borrow<SDPMessageRef> for SDPMessage

source§

fn borrow(&self) -> &SDPMessageRef

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<SDPMessageRef> for SDPMessage

source§

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

Mutably borrows from an owned value. Read more
source§

impl Clone for SDPMessage

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 SDPMessage

source§

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

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

impl Default for SDPMessage

source§

fn default() -> Self

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

impl Deref for SDPMessage

§

type Target = SDPMessageRef

The resulting type after dereferencing.
source§

fn deref(&self) -> &SDPMessageRef

Dereferences the value.
source§

impl DerefMut for SDPMessage

source§

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

Mutably dereferences the value.
source§

impl Display for SDPMessage

source§

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

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

impl From<SDPMessage> for Value

source§

fn from(o: SDPMessage) -> Self

Converts to this type from the input type.
source§

impl HasParamSpec for SDPMessage

§

type ParamSpec = ParamSpecBoxed

§

type SetValue = SDPMessage

Preferred value to be used as setter for the associated ParamSpec.
§

type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, SDPMessage>

source§

fn param_spec_builder() -> Self::BuilderFn

source§

impl Hash for SDPMessage

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 SDPMessage

source§

fn cmp(&self, other: &SDPMessage) -> 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 SDPMessage

source§

fn eq(&self, other: &SDPMessage) -> 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 SDPMessage

source§

fn partial_cmp(&self, other: &SDPMessage) -> 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 StaticType for SDPMessage

source§

fn static_type() -> Type

Returns the type identifier of Self.
source§

impl Eq for SDPMessage

source§

impl Send for SDPMessage

source§

impl StructuralPartialEq for SDPMessage

source§

impl Sync for SDPMessage

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> IntoClosureReturnValue for T
where T: Into<Value>,

source§

impl<T> Property for T
where T: HasParamSpec,

§

type Value = T

source§

impl<T> PropertyGet for T
where T: HasParamSpec,

§

type Value = T

source§

fn get<R, F>(&self, f: F) -> R
where F: Fn(&<T as PropertyGet>::Value) -> R,

source§

impl<T> StaticTypeExt for T
where T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
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> ToSendValue for T
where T: Send + ToValue + ?Sized,

source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
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> TryFromClosureReturnValue for T
where T: for<'a> FromValue<'a> + StaticType + 'static,

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.
source§

impl<'a, T, C, E> FromValueOptional<'a> for T
where T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static,