gstreamer::prelude

Trait TocSetterExt

Source
pub trait TocSetterExt: IsA<TocSetter> + 'static {
    // Provided methods
    fn toc(&self) -> Option<Toc> { ... }
    fn reset(&self) { ... }
    fn set_toc(&self, toc: Option<&Toc>) { ... }
}
Expand description

Trait containing all TocSetter methods.

§Implementors

TocSetter

Provided Methods§

Source

fn toc(&self) -> Option<Toc>

Return current TOC the setter uses. The TOC should not be modified without making it writable first.

§Returns

TOC set, or None. Unref with gst_toc_unref() when no longer needed

Source

fn reset(&self)

Reset the internal TOC. Elements should call this from within the state-change handler.

Source

fn set_toc(&self, toc: Option<&Toc>)

Set the given TOC on the setter. Previously set TOC will be unreffed before setting a new one.

§toc

a Toc to set.

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§