Trait gstreamer::prelude::DeviceMonitorExt [−][src]
pub trait DeviceMonitorExt: 'static { fn bus(&self) -> Bus; fn devices(&self) -> Vec<Device>; 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; }
Required methods
fn bus(&self) -> Bus
[src]
fn devices(&self) -> Vec<Device>
[src]
Gets a list of devices from all of the relevant monitors. This may actually probe the hardware if the monitor is not currently started.
Returns
a [crate::glib::List
] of
crate::Device
fn providers(&self) -> Vec<GString>
[src]
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.
fn shows_all_devices(&self) -> bool
[src]
Get if self
is currently showing all devices, even those from hidden
providers.
Returns
true
when all devices will be shown.
fn set_show_all_devices(&self, show_all: bool)
[src]
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
fn start(&self) -> Result<(), BoolError>
[src]
Starts monitoring the devices, one this has succeeded, the
crate::MessageType::DeviceAdded
and crate::MessageType::DeviceRemoved
messages
will be emitted on the bus when the list of devices changes.
Returns
true
if the device monitoring could be started
fn stop(&self)
[src]
Stops monitoring the devices.
fn shows_all(&self) -> bool
[src]
fn set_show_all(&self, show_all: bool)
[src]
fn connect_show_all_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<DeviceMonitor>> DeviceMonitorExt for O
[src]
impl<O: IsA<DeviceMonitor>> DeviceMonitorExt for O
[src]fn bus(&self) -> Bus
[src]
fn devices(&self) -> Vec<Device>
[src]
fn providers(&self) -> Vec<GString>
[src]
fn shows_all_devices(&self) -> bool
[src]
fn set_show_all_devices(&self, show_all: bool)
[src]
fn start(&self) -> Result<(), BoolError>
[src]
fn stop(&self)
[src]
fn shows_all(&self) -> bool
[src]
fn set_show_all(&self, show_all: bool)
[src]
fn connect_show_all_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId