[−]Struct gstreamer_rtsp::RTSPUrl
Provides helper functions to handle RTSP urls.
Methods
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 set_port(&mut self, port: u16) -> RTSPResult
[src][−]
pub fn parse(urlstr: &str) -> (RTSPResult, RTSPUrl)
[src][−]
Trait Implementations
impl Clone for RTSPUrl
[+]
impl Debug for RTSPUrl
[src][+]
impl Eq for RTSPUrl
[src]
impl Hash for RTSPUrl
[src][+]
impl Ord for RTSPUrl
[src][+]
impl PartialEq<RTSPUrl> for RTSPUrl
[src][+]
impl PartialOrd<RTSPUrl> for RTSPUrl
[src][+]
impl Send for RTSPUrl
[src]
impl StaticType for RTSPUrl
[+]
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,
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,
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src][+]
T: ToValue + SetValue + Send + ?Sized,
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>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,