pub trait PluginFeatureExtManual: Sealed + IsA<PluginFeature> + Sized + 'static {
    // Provided methods
    fn rank(&self) -> Rank { ... }
    fn set_rank(&self, rank: Rank) { ... }
    fn load(&self) -> Result<Self, BoolError> { ... }

Provided Methods§


fn rank(&self) -> Rank

Gets the rank of a plugin feature.


The rank of the feature


fn set_rank(&self, rank: Rank)

Specifies a rank for a plugin feature, so that autoplugging uses the most appropriate feature.


rank value - higher number means more priority rank


fn load(&self) -> Result<Self, BoolError>

Loads the plugin containing self if it’s not already loaded. self is unaffected; use the return value instead.

Normally this function is used like this:

⚠️ The following code is in C ⚠️

GstPluginFeature *loaded_feature;

loaded_feature = gst_plugin_feature_load (feature);
// presumably, we're no longer interested in the potentially-unloaded feature
gst_object_unref (feature);
feature = loaded_feature;

a reference to the loaded feature, or None on error

Object Safety§

This trait is not object safe.