Struct realsense_rust::device_hub::DeviceHub [−][src]
pub struct DeviceHub { /* fields omitted */ }
Expand description
A type representing a hub for devices to connect to.
The device hub is a type used for waiting on a device connection or to check if a device is still connected.
Implementations
Gets a connected device, or waits for any device to be connected.
If any device is connected, this method will return that device. It will cycle through devices if multiple are connected. Otherwise, it blocks the calling thread until a device is connected.
Errors
Returns CouldNotWaitForDeviceError
if an internal exception occurs while trying to wait
for device connections.
Returns DeviceConstructionError
if a device is
found but an exception occurs during type construction.
Predicate to check whether a given device is connected.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DeviceHub
impl UnwindSafe for DeviceHub