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 { ... }
}
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

Object Safety§

This trait is not object safe.

Implementors§

source§

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