gstreamer_validate::prelude

Trait RunnerExt

Source
pub trait RunnerExt: IsA<Runner> + '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 { ... }
}
Expand description

Trait containing all Runner methods.

§Implementors

Runner

Provided Methods§

Source

fn add_report(&self, report: &Report)

Source

fn exit(&self, print_result: bool) -> i32

Source

fn default_reporting_level(&self) -> ReportingDetails

Source

fn reporting_level_for_name(&self, name: &str) -> ReportingDetails

Source

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

§Returns

The list of reports

Source

fn reports_count(&self) -> u32

Get the number of reports present in the runner:

§Returns

The number of reports present in the runner.

Source

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.

Source

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

Source

fn connect_stopping<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§

Source§

impl<O: IsA<Runner>> RunnerExt for O