Trait gstreamer::prelude::PluginFeatureExt
source · pub trait PluginFeatureExt:
IsA<PluginFeature>
+ Sealed
+ 'static {
// Provided methods
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> { ... }
}
Expand description
Trait containing all PluginFeature
methods.
§Implementors
DeviceProviderFactory
, ElementFactory
, PluginFeature
, TracerFactory
, TypeFindFactory
Provided Methods§
sourcefn check_version(&self, min_major: u32, min_minor: u32, min_micro: u32) -> bool
fn check_version(&self, min_major: u32, min_minor: u32, min_micro: u32) -> bool
Checks whether the given plugin feature is at least the required version.
Note: Since version 1.24 this function no longer returns true
if the
version is a git development version (e.g. 1.23.0.1) and the check is
for the “next” micro version, that is it will no longer return true
for
e.g. 1.23.0.1 if the check is for 1.23.1. It is still possible to parse
the nano version from the string and do this check that way if needed.
§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
.
Object Safety§
This trait is not object safe.