[][src]Struct gstreamer_rtsp::RTSPUrl

pub struct 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]

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]

Set the port number in self to port.

port

the port

Returns

RTSPResult::Ok.

pub fn parse(urlstr: &str) -> (RTSPResult, RTSPUrl)[src]

Parse the RTSP urlstr into a newly allocated RTSPUrl. Free after usage with RTSPUrl::free.

urlstr

the url string to parse

url

location to hold the result.

Returns

a RTSPResult.

Trait Implementations

impl Clone for RTSPUrl[src]

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[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.