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
Provided Methods§
sourcefn add_factory(&self, path: &str, factory: impl IsA<RTSPMediaFactory>)
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
sourcefn make_path(&self, url: &RTSPUrl) -> Result<GString, BoolError>
fn make_path(&self, url: &RTSPUrl) -> Result<GString, BoolError>
sourcefn match_(&self, path: &str) -> (RTSPMediaFactory, i32)
fn match_(&self, path: &str) -> (RTSPMediaFactory, i32)
Find the factory in self
that has the longest match with path
.
If matched
is None
, path
will match the factory exactly otherwise
the amount of characters that matched is returned in matched
.
§path
a mount point
§Returns
the RTSPMediaFactory
for path
.
g_object_unref()
after usage.
§matched
the amount of path
matched
sourcefn remove_factory(&self, path: &str)
fn remove_factory(&self, path: &str)
Object Safety§
This trait is not object safe.