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

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.