pub trait RTSPMountPointsExt: IsA<RTSPMountPoints> + Sealed + 'static {
    // Provided methods
    fn add_factory(&self, path: &str, factory: impl IsA<RTSPMediaFactory>) { ... }
    fn make_path(&self, url: &RTSPUrl) -> Result<GString, BoolError> { ... }
    fn match_(&self, path: &str) -> (RTSPMediaFactory, i32) { ... }
    fn remove_factory(&self, path: &str) { ... }
}
Expand description

Trait containing all RTSPMountPoints methods.

§Implementors

RTSPMountPoints

Provided Methods§

source

fn add_factory(&self, path: &str, factory: impl IsA<RTSPMediaFactory>)

Attach factory to the mount point path in self.

path is either of the form (/node)+ or the root path ‘/’. (An empty path is not allowed.) Any previous mount point will be freed.

Ownership is taken of the reference on factory so that factory should not be used after calling this function.

§path

a mount point

§factory

a RTSPMediaFactory

source

fn make_path(&self, url: &RTSPUrl) -> Result<GString, BoolError>

Make a path string from url.

§url

a gst_rtsp::RTSPUrl

§Returns

a path string for url, g_free() after usage.

source

fn match_(&self, path: &str) -> (RTSPMediaFactory, i32)

source

fn remove_factory(&self, path: &str)

Remove the RTSPMediaFactory associated with path in self.

§path

a mount point

Object Safety§

This trait is not object safe.

Implementors§