Trait gstreamer_validate::prelude::ReporterExt

source ·
pub trait ReporterExt: IsA<Reporter> + Sealed + 'static {
    // Provided methods
    fn name(&self) -> Option<GString> { ... }
    fn pipeline(&self) -> Option<Pipeline> { ... }
    fn reporting_level(&self) -> ReportingDetails { ... }
    fn reports(&self) -> Vec<Report> { ... }
    fn reports_count(&self) -> i32 { ... }
    fn runner(&self) -> Option<Runner> { ... }
    fn init(&self, name: &str) { ... }
    fn purge_reports(&self) { ... }
    fn set_handle_g_logs(&self) { ... }
    fn set_name(&self, name: Option<GString>) { ... }
    fn set_runner(&self, runner: &impl IsA<Runner>) { ... }
    fn validate_runner(&self) -> Option<Runner> { ... }
}
Expand description

Trait containing all Reporter methods.

§Implementors

BinMonitor, ElementMonitor, Monitor, PadMonitor, PipelineMonitor, Reporter, Scenario

Provided Methods§

source

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

Gets name of self

§Returns

The name of the reporter

source

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

§Returns

The [gst::Pipeline][crate::gst::Pipeline]

source

fn reporting_level(&self) -> ReportingDetails

source

fn reports(&self) -> Vec<Report>

Get the list of reports present in the reporter.

§Returns

the list of Report present in the reporter. The caller should unref each report once it is done with them.

source

fn reports_count(&self) -> i32

Get the number of reports present in the reporter.

§Returns

the number of reports currently present in self.

source

fn runner(&self) -> Option<Runner>

§Returns

The runner

source

fn init(&self, name: &str)

source

fn purge_reports(&self)

Remove all the Report from self. This should be called before unreffing the reporter to break cyclic references.

source

fn set_handle_g_logs(&self)

Set self has the ‘source’ of any g_log happening during the execution. Usually the monitor of the first [gst::Pipeline][crate::gst::Pipeline] is used to handle g_logs.

Basically this function is used in order to start tracking any issue reported with g_log in the process into GstValidate report in the GstValidate reporting system.

source

fn set_name(&self, name: Option<GString>)

Sets name on self

§name

The name of the reporter

source

fn set_runner(&self, runner: &impl IsA<Runner>)

source

fn validate_runner(&self) -> Option<Runner>

Object Safety§

This trait is not object safe.

Implementors§