Trait gstreamer::prelude::PluginFeatureExt[][src]

pub trait PluginFeatureExt: 'static {
    fn check_version(
        &self,
        min_major: u32,
        min_minor: u32,
        min_micro: u32
    ) -> bool;
fn plugin(&self) -> Option<Plugin>;
fn plugin_name(&self) -> Option<GString>; }

Trait containing all PluginFeature methods.

Implementors

crate::DeviceProviderFactory, crate::ElementFactory, crate::PluginFeature, crate::TypeFindFactory

Required methods

fn check_version(&self, min_major: u32, min_minor: u32, min_micro: u32) -> bool[src]

Checks whether the given plugin feature is at least the required version

min_major

minimum required major version

min_minor

minimum required minor version

min_micro

minimum required micro version

Returns

true if the plugin feature has at least the required version, otherwise false.

fn plugin(&self) -> Option<Plugin>[src]

Get the plugin that provides this feature.

Returns

the plugin that provides this feature, or None. Unref with [crate::prelude::GstObjectExt::unref()] when no longer needed.

fn plugin_name(&self) -> Option<GString>[src]

Get the name of the plugin that provides this feature.

Returns

the name of the plugin that provides this feature, or None if the feature is not associated with a plugin.

Loading content...

Implementors

impl<O: IsA<PluginFeature>> PluginFeatureExt for O[src]

fn check_version(&self, min_major: u32, min_minor: u32, min_micro: u32) -> bool[src]

fn plugin(&self) -> Option<Plugin>[src]

fn plugin_name(&self) -> Option<GString>[src]

Loading content...