[−][src]Struct gstreamer_rtsp::RTSPUrl
Provides helper functions to handle RTSP urls.
Implementations
impl RTSPUrl
[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 get_request_uri(&self) -> Option<GString>
[src]
Get a newly allocated string describing the request URI for self
.
Returns
a string with the request URI. g_free
after usage.
pub fn get_request_uri_with_control(
&self,
control_path: &str
) -> Option<GString>
[src]
&self,
control_path: &str
) -> Option<GString>
Get a newly allocated string describing the request URI for self
combined with the control path for control_path
Feature: v1_18
control_path
an RTSP aggregate control path
Returns
a string with the request URI combined with the control path.
g_free
after usage.
pub fn set_port(&mut self, port: u16) -> RTSPResult
[src]
pub fn parse(urlstr: &str) -> (RTSPResult, RTSPUrl)
[src]
Trait Implementations
impl Clone for RTSPUrl
[src]
impl Debug for RTSPUrl
[src]
impl Eq for RTSPUrl
[src]
impl Hash for RTSPUrl
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for RTSPUrl
[src]
fn cmp(&self, other: &RTSPUrl) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<RTSPUrl> for RTSPUrl
[src]
impl PartialOrd<RTSPUrl> for RTSPUrl
[src]
fn partial_cmp(&self, other: &RTSPUrl) -> Option<Ordering>
[src]
fn lt(&self, other: &RTSPUrl) -> bool
[src]
fn le(&self, other: &RTSPUrl) -> bool
[src]
fn gt(&self, other: &RTSPUrl) -> bool
[src]
fn ge(&self, other: &RTSPUrl) -> bool
[src]
impl Send for RTSPUrl
[src]
impl StaticType for RTSPUrl
[src]
fn static_type() -> Type
[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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src]
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,