Trait gstreamer_validate::prelude::RunnerExt
source · pub trait RunnerExt: IsA<Runner> + Sealed + 'static {
// Provided methods
fn add_report(&self, report: &Report) { ... }
fn exit(&self, print_result: bool) -> i32 { ... }
fn default_reporting_level(&self) -> ReportingDetails { ... }
fn reporting_level_for_name(&self, name: &str) -> ReportingDetails { ... }
fn reports(&self) -> Vec<Report> { ... }
fn reports_count(&self) -> u32 { ... }
fn printf(&self) -> i32 { ... }
fn connect_report_added<F: Fn(&Self, &Report) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_stopping<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided Methods§
fn add_report(&self, report: &Report)
fn exit(&self, print_result: bool) -> i32
fn default_reporting_level(&self) -> ReportingDetails
fn reporting_level_for_name(&self, name: &str) -> ReportingDetails
sourcefn reports_count(&self) -> u32
fn reports_count(&self) -> u32
Get the number of reports present in the runner:
§Returns
The number of reports present in the runner.
sourcefn printf(&self) -> i32
fn printf(&self) -> i32
Prints all the reports on the terminal or on wherever is set
in the GST_VALIDATE_FILE
env variable.
§Returns
0 if no critical error has been found and 18 if a critical error has been detected. That return value is usually to be used as exit code of the application.
fn connect_report_added<F: Fn(&Self, &Report) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_stopping<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.