gstreamer_validate::prelude

Trait MonitorExt

Source
pub trait MonitorExt: IsA<Monitor> + 'static {
    // Provided methods
    fn element(&self) -> Option<Element> { ... }
    fn element_name(&self) -> Option<GString> { ... }
    fn pipeline(&self) -> Option<Pipeline> { ... }
    fn target(&self) -> Option<Object> { ... }
    fn object(&self) -> Option<Object> { ... }
    fn set_pipeline<P: IsA<Pipeline>>(&self, pipeline: Option<&P>) { ... }
    fn validate_parent(&self) -> Option<Monitor> { ... }
    fn connect_pipeline_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_verbosity_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Monitor methods.

§Implementors

ElementMonitor, Monitor, PadMonitor

Provided Methods§

Source

fn element(&self) -> Option<Element>

§Returns

The GstElement associated with self

Source

fn element_name(&self) -> Option<GString>

§Returns

The name of the element associated with self

Source

fn pipeline(&self) -> Option<Pipeline>

§Returns

The pipeline in which self target is in.

Source

fn target(&self) -> Option<Object>

§Returns

The target object

Source

fn object(&self) -> Option<Object>

Source

fn set_pipeline<P: IsA<Pipeline>>(&self, pipeline: Option<&P>)

Source

fn validate_parent(&self) -> Option<Monitor>

Source

fn connect_pipeline_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_verbosity_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§