Struct realsense_rust::device::Device [−][src]
pub struct Device { /* fields omitted */ }
Expand description
A type representing a RealSense device.
A device in librealsense2 corresponds to a physical unit that connects to your computer (usually via USB). Devices hold a list of sensors, which in turn are represented by a list of streams producing frames.
Devices are usually acquired by the driver context.
Implementations
Gets a list of sensors associated with the device.
Returns a vector of zero size if any error occurs while trying to read the sensor list. This can occur if the physical device is disconnected before this call is made.
Takes ownership of the device and forces a hardware reset on the device.
Ownership of the device is taken as the underlying state can no longer be safely retained after resetting the device.
Gets the value associated with the provided camera info key from the device.
Returns some information value associated with the camera info key if the camera_info
is
supported by the device, else it returns None
.
Predicate for checking if camera_info
is supported for this device.
Returns true iff the device has a value associated with the camera_info
key.
Trait Implementations
Attempt to construct a Device from a non-null pointer to rs2_device
.
Constructs a device from a pointer to an rs2_device
type from the C-FFI.