Trait gstreamer::prelude::PluginFeatureExtManual

source ·
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§

source

fn rank(&self) -> Rank

Gets the rank of a plugin feature.

§Returns

The rank of the feature

source

fn set_rank(&self, rank: Rank)

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

§rank

rank value - higher number means more priority rank

source

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;
§Returns

a reference to the loaded feature, or None on error

Object Safety§

This trait is not object safe.

Implementors§