Struct gstreamer_sdp::sdp_message::SDPMessage
source · pub struct SDPMessage { /* private fields */ }
Expand description
GLib type: Boxed type with copy-on-clone semantics.
Implementations§
source§impl SDPMessage
impl SDPMessage
sourcepub fn as_ptr(&self) -> *mut GstSDPMessage
pub fn as_ptr(&self) -> *mut GstSDPMessage
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut GstSDPMessage) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GstSDPMessage) -> &Self
Borrows the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow_mut(
ptr: &mut *mut GstSDPMessage,
) -> &mut Self
pub unsafe fn from_glib_ptr_borrow_mut( ptr: &mut *mut GstSDPMessage, ) -> &mut Self
Borrows the underlying C value mutably.
Methods from Deref<Target = SDPMessageRef>§
pub fn add_attribute(&mut self, key: &str, value: Option<&str>)
pub fn add_email(&mut self, email: &str)
pub fn add_media(&mut self, media: SDPMedia)
pub fn add_phone(&mut self, phone: &str)
pub fn add_time(&mut self, start: &str, stop: &str, repeat: &[&str])
pub fn add_zone(&mut self, adj_time: &str, typed_time: &str)
pub fn as_text(&self) -> Result<String, BoolError>
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 dump(&self)
pub fn emails_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 connection(&self) -> Option<&SDPConnection>
pub fn email(&self, idx: u32) -> Option<&str>
pub fn information(&self) -> Option<&str>
pub fn key(&self) -> Option<&SDPKey>
pub fn media(&self, idx: u32) -> Option<&SDPMediaRef>
pub fn media_mut(&mut self, idx: u32) -> Option<&mut SDPMediaRef>
pub fn origin(&self) -> Option<&SDPOrigin>
pub fn phone(&self, idx: u32) -> Option<&str>
pub fn session_name(&self) -> Option<&str>
pub fn time(&self, idx: u32) -> Option<&SDPTime>
pub fn uri(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
pub fn zone(&self, idx: u32) -> Option<&SDPZone>
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_email( &mut self, idx: Option<u32>, email: &str, ) -> Result<(), BoolError>
pub fn insert_phone( &mut self, idx: Option<u32>, phone: &str, ) -> Result<(), BoolError>
pub fn insert_time( &mut self, idx: Option<u32>, time: SDPTime, ) -> Result<(), BoolError>
pub fn insert_zone( &mut self, idx: Option<u32>, zone: SDPZone, ) -> Result<(), BoolError>
pub fn medias_len(&self) -> u32
pub fn phones_len(&self) -> u32
pub fn remove_attribute(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_bandwidth(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_email(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_phone(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_time(&mut self, idx: u32) -> Result<(), BoolError>
pub fn remove_zone(&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_email(&mut self, idx: u32, email: &str) -> Result<(), BoolError>
pub fn replace_phone(&mut self, idx: u32, phone: &str) -> Result<(), BoolError>
pub fn replace_time(&mut self, idx: u32, time: SDPTime) -> Result<(), BoolError>
pub fn replace_zone(&mut self, idx: u32, zone: SDPZone) -> Result<(), BoolError>
pub fn set_connection( &mut self, nettype: &str, addrtype: &str, address: &str, ttl: u32, addr_number: u32, )
pub fn set_information(&mut self, information: &str)
pub fn set_key(&mut self, type_: &str, data: &str)
pub fn set_origin( &mut self, username: &str, sess_id: &str, sess_version: &str, nettype: &str, addrtype: &str, addr: &str, )
pub fn set_session_name(&mut self, session_name: &str)
pub fn set_uri(&mut self, uri: &str)
pub fn set_version(&mut self, version: &str)
pub fn times_len(&self) -> u32
pub fn zones_len(&self) -> u32
pub fn as_uri(&self, scheme: &str) -> Result<String, BoolError>
pub fn attributes(&self) -> AttributesIter<'_> ⓘ
pub fn bandwidths(&self) -> BandwidthsIter<'_> ⓘ
pub fn emails(&self) -> EmailsIter<'_> ⓘ
pub fn medias(&self) -> MediasIter<'_> ⓘ
pub fn medias_mut(&mut self) -> MediasIterMut<'_> ⓘ
pub fn phones(&self) -> PhonesIter<'_> ⓘ
pub fn times(&self) -> TimesIter<'_> ⓘ
pub fn zones(&self) -> ZonesIter<'_> ⓘ
Trait Implementations§
source§impl Borrow<SDPMessageRef> for SDPMessage
impl Borrow<SDPMessageRef> for SDPMessage
source§fn borrow(&self) -> &SDPMessageRef
fn borrow(&self) -> &SDPMessageRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<SDPMessageRef> for SDPMessage
impl BorrowMut<SDPMessageRef> for SDPMessage
source§fn borrow_mut(&mut self) -> &mut SDPMessageRef
fn borrow_mut(&mut self) -> &mut SDPMessageRef
Mutably borrows from an owned value. Read more
source§impl Clone for SDPMessage
impl Clone for SDPMessage
source§impl Debug for SDPMessage
impl Debug for SDPMessage
source§impl Default for SDPMessage
impl Default for SDPMessage
source§impl Deref for SDPMessage
impl Deref for SDPMessage
§type Target = SDPMessageRef
type Target = SDPMessageRef
The resulting type after dereferencing.
source§fn deref(&self) -> &SDPMessageRef
fn deref(&self) -> &SDPMessageRef
Dereferences the value.
source§impl DerefMut for SDPMessage
impl DerefMut for SDPMessage
source§fn deref_mut(&mut self) -> &mut SDPMessageRef
fn deref_mut(&mut self) -> &mut SDPMessageRef
Mutably dereferences the value.
source§impl Display for SDPMessage
impl Display for SDPMessage
source§impl From<SDPMessage> for Value
impl From<SDPMessage> for Value
source§fn from(o: SDPMessage) -> Self
fn from(o: SDPMessage) -> Self
Converts to this type from the input type.
source§impl HasParamSpec for SDPMessage
impl HasParamSpec for SDPMessage
type ParamSpec = ParamSpecBoxed
§type SetValue = SDPMessage
type SetValue = SDPMessage
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, SDPMessage>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for SDPMessage
impl Hash for SDPMessage
source§impl Ord for SDPMessage
impl Ord for SDPMessage
source§fn cmp(&self, other: &SDPMessage) -> Ordering
fn cmp(&self, other: &SDPMessage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SDPMessage
impl PartialEq for SDPMessage
source§impl PartialOrd for SDPMessage
impl PartialOrd for SDPMessage
source§impl StaticType for SDPMessage
impl StaticType for SDPMessage
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for SDPMessage
impl Send for SDPMessage
impl StructuralPartialEq for SDPMessage
impl Sync for SDPMessage
Auto Trait Implementations§
impl Freeze for SDPMessage
impl RefUnwindSafe for SDPMessage
impl Unpin for SDPMessage
impl UnwindSafe for SDPMessage
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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 moresource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.