[][src]Struct gstreamer::DeviceProvider

pub struct DeviceProvider(_, _);

A DeviceProvider subclass is provided by a plugin that handles devices if there is a way to programmatically list connected devices. It can also optionally provide updates to the list of connected devices.

Each DeviceProvider subclass is a singleton, a plugin should normally provide a single subclass for all devices.

Applications would normally use a DeviceMonitor to monitor devices from all relevant providers.

Implements

DeviceProviderExt, GstObjectExt, glib::object::ObjectExt, DeviceProviderExtManual

Implementations

impl DeviceProvider[src]

pub fn register(
    plugin: Option<&Plugin>,
    name: &str,
    rank: Rank,
    type_: Type
) -> Result<(), BoolError>
[src]

Create a new device providerfactory capable of instantiating objects of the type_ and add the factory to plugin.

plugin

Plugin to register the device provider with, or None for a static device provider.

name

name of device providers of this type

rank

rank of device provider (higher rank means more importance when autoplugging)

type_

GType of device provider to register

Returns

true, if the registering succeeded, false on error

Trait Implementations

impl Clone for DeviceProvider[src]

impl Debug for DeviceProvider[src]

impl Eq for DeviceProvider[src]

impl Hash for DeviceProvider[src]

impl IsA<Object> for DeviceProvider[src]

impl Ord for DeviceProvider[src]

impl<T: ObjectType> PartialEq<T> for DeviceProvider[src]

impl<T: ObjectType> PartialOrd<T> for DeviceProvider[src]

impl Send for DeviceProvider[src]

impl StaticType for DeviceProvider[src]

impl Sync for DeviceProvider[src]

Auto Trait Implementations

impl RefUnwindSafe for DeviceProvider

impl Unpin for DeviceProvider

impl UnwindSafe for DeviceProvider

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.