Trait gstreamer::prelude::DeviceMonitorExt

source ·
pub trait DeviceMonitorExt: IsA<DeviceMonitor> + Sealed + 'static {
    // Provided methods
    fn bus(&self) -> Bus { ... }
    fn providers(&self) -> Vec<GString> { ... }
    fn shows_all_devices(&self) -> bool { ... }
    fn set_show_all_devices(&self, show_all: bool) { ... }
    fn start(&self) -> Result<(), BoolError> { ... }
    fn stop(&self) { ... }
    fn shows_all(&self) -> bool { ... }
    fn set_show_all(&self, show_all: bool) { ... }
    fn connect_show_all_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all DeviceMonitor methods.

§Implementors

DeviceMonitor

Provided Methods§

source

fn bus(&self) -> Bus

Gets the Bus of this DeviceMonitor

§Returns

a Bus

source

fn providers(&self) -> Vec<GString>

Get a list of the currently selected device provider factories.

This

§Returns

A list of device provider factory names that are currently being monitored by self or None when nothing is being monitored.

source

fn shows_all_devices(&self) -> bool

Get if self is currently showing all devices, even those from hidden providers.

§Returns

true when all devices will be shown.

source

fn set_show_all_devices(&self, show_all: bool)

Set if all devices should be visible, even those devices from hidden providers. Setting show_all to true might show some devices multiple times.

§show_all

show all devices

source

fn start(&self) -> Result<(), BoolError>

Starts monitoring the devices, one this has succeeded, the GST_MESSAGE_DEVICE_ADDED and GST_MESSAGE_DEVICE_REMOVED messages will be emitted on the bus when the list of devices changes.

§Returns

true if the device monitoring could be started, i.e. at least a single device provider was started successfully.

source

fn stop(&self)

Stops monitoring the devices.

source

fn shows_all(&self) -> bool

source

fn set_show_all(&self, show_all: bool)

source

fn connect_show_all_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§