pub struct GStreamerProbe {
pub gst_launch: Option<String>,
pub gst_discoverer: Option<String>,
pub plugins: BTreeMap<String, bool>,
pub path: String,
}Expand description
Structured GStreamer probe result.
gst_launch / gst_discoverer contain the trimmed --version
output when the binary is callable, or None when the spawn fails.
plugins is the requested-plugin map (from
probe_with_plugins); empty when probe is used.
Fields§
§gst_launch: Option<String>gst-launch-1.0 --version first line, or None if the spawn
failed (binary missing, permission denied, etc.).
gst_discoverer: Option<String>gst-discoverer-1.0 --version first line, or None.
plugins: BTreeMap<String, bool>Requested-plugin presence map (plugin-name → present?). Filled
only by probe_with_plugins. Sorted by name for deterministic
output.
path: StringSnapshot of PATH at probe time. Useful in CI logs when a
previously-working install starts spawning ENOENT.
Implementations§
Source§impl GStreamerProbe
impl GStreamerProbe
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
True when both gst-launch-1.0 and gst-discoverer-1.0 are
callable. Plugin-presence is not considered — explicit
plugin requirements should be checked via Self::has_plugin.
Sourcepub fn has_plugin(&self, name: &str) -> bool
pub fn has_plugin(&self, name: &str) -> bool
True when the named plugin was checked AND present. Returns
false for both “checked-but-missing” and “not-checked.”
Callers wanting to distinguish should inspect Self::plugins
directly.
Trait Implementations§
Source§impl Clone for GStreamerProbe
impl Clone for GStreamerProbe
Source§fn clone(&self) -> GStreamerProbe
fn clone(&self) -> GStreamerProbe
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GStreamerProbe
impl Debug for GStreamerProbe
Source§impl Display for GStreamerProbe
impl Display for GStreamerProbe
Source§impl PartialEq for GStreamerProbe
impl PartialEq for GStreamerProbe
Source§fn eq(&self, other: &GStreamerProbe) -> bool
fn eq(&self, other: &GStreamerProbe) -> bool
self and other values to be equal, and is used by ==.