gstreamer::subclass::prelude

Trait BinImpl

Source
pub trait BinImpl: ElementImpl + ObjectSubclass<Type: IsA<Bin>> {
    // Provided methods
    fn add_element(&self, element: &Element) -> Result<(), LoggableError> { ... }
    fn remove_element(&self, element: &Element) -> Result<(), LoggableError> { ... }
    fn do_latency(&self) -> Result<(), LoggableError> { ... }
    fn handle_message(&self, message: Message) { ... }
}

Provided Methods§

Source

fn add_element(&self, element: &Element) -> Result<(), LoggableError>

Method to add an element to the bin.

§element

the element to be added

§Returns

true if the element was added

Source

fn remove_element(&self, element: &Element) -> Result<(), LoggableError>

Method to remove an element from the bin.

§element

the element to be removed

§Returns

true if the element was removed

Source

fn do_latency(&self) -> Result<(), LoggableError>

Source

fn handle_message(&self, message: Message)

Method to handle a message from the children.

§message

the message to be handled

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§