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§
fn reporting_level(&self) -> ReportingDetails
sourcefn reports_count(&self) -> i32
fn reports_count(&self) -> i32
Get the number of reports present in the reporter.
§Returns
the number of reports currently present in self
.
fn init(&self, name: &str)
sourcefn purge_reports(&self)
fn purge_reports(&self)
Remove all the Report
from self
. This should be called
before unreffing the reporter to break cyclic references.
sourcefn set_handle_g_logs(&self)
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.
fn set_runner(&self, runner: &impl IsA<Runner>)
fn validate_runner(&self) -> Option<Runner>
Object Safety§
This trait is not object safe.