Struct gstreamer_pbutils::Discoverer[]

pub struct Discoverer(_, _);

The Discoverer is a utility object which allows to get as much information as possible from one or many URIs.

It provides two APIs, allowing usage in blocking or non-blocking mode.

The blocking mode just requires calling Discoverer::discover_uri with the URI one wishes to discover.

The non-blocking mode requires a running glib::MainLoop iterating a glib::MainContext, where one connects to the various signals, appends the URIs to be processed (through Discoverer::discover_uri_async) and then asks for the discovery to begin (through Discoverer::start). By default this will use the GLib default main context unless you have set a custom context using glib::MainContext::push_thread_default.

All the information is returned in a DiscovererInfo structure.

Implements

glib::object::ObjectExt

Methods

impl Discoverer
[src]

Creates a new Discoverer with the provided timeout.

timeout

timeout per file, in nanoseconds. Allowed are values between one second (GST_SECOND) and one hour (3600 * GST_SECOND)

Returns

The new Discoverer. If an error occurred when creating the discoverer, err will be set accordingly and None will be returned. If err is set, the caller must free it when no longer needed using glib::Error::free.

impl Discoverer
[src]

Trait Implementations

impl Clone for Discoverer

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Discoverer

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for Discoverer

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl StaticType for Discoverer

Returns the type identifier of Self.

impl<T: IsA<Object>> PartialEq<T> for Discoverer

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Discoverer

impl<T: IsA<Object>> PartialOrd<T> for Discoverer

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for Discoverer

Formats the value using the given formatter. Read more

impl IsA<Object> for Discoverer

impl Send for Discoverer
[src]

impl Sync for Discoverer
[src]