Struct gstreamer_rtsp::RTSPUrl [−][src]
pub struct RTSPUrl(_);
Provides helper functions to handle RTSP urls.
Implementations
impl RTSPUrl
[src]
impl RTSPUrl
[src]pub fn decode_path_components(&self) -> Vec<GString>
[src]
pub fn decode_path_components(&self) -> Vec<GString>
[src]Splits the path of self
on ‘/’ boundaries, decoding the resulting components,
The decoding performed by this routine is “URI decoding”, as defined in RFC 3986, commonly known as percent-decoding. For example, a string “foo%2fbar” will decode to “foo/bar” – the %2f being replaced by the corresponding byte with hex value 0x2f. Note that there is no guarantee that the resulting byte sequence is valid in any given encoding. As a special case, %00 is not unescaped to NUL, as that would prematurely terminate the string.
Also note that since paths usually start with a slash, the first component will usually be the empty string.
Returns
None
-terminated array of URL components. Free with
g_strfreev()
when no longer needed.
pub fn request_uri(&self) -> Option<GString>
[src]
pub fn request_uri_with_control(&self, control_path: &str) -> Option<GString>
[src]
v1_18
only.pub fn set_port(&mut self, port: u16) -> RTSPResult
[src]
pub fn set_port(&mut self, port: u16) -> RTSPResult
[src]Trait Implementations
impl Ord for RTSPUrl
[src]
impl Ord for RTSPUrl
[src]impl PartialOrd<RTSPUrl> for RTSPUrl
[src]
impl PartialOrd<RTSPUrl> for RTSPUrl
[src]fn partial_cmp(&self, other: &RTSPUrl) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &RTSPUrl) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StaticType for RTSPUrl
[src]
impl StaticType for RTSPUrl
[src]fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl Eq for RTSPUrl
[src]
impl Send for RTSPUrl
[src]
impl StructuralEq for RTSPUrl
[src]
impl StructuralPartialEq for RTSPUrl
[src]
Auto Trait Implementations
impl RefUnwindSafe for RTSPUrl
impl !Sync for RTSPUrl
impl Unpin for RTSPUrl
impl UnwindSafe for RTSPUrl
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
pub fn to_send_value(&self) -> SendValue
[src]Returns a SendValue
clone of self
.
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,
[src]
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,