pub struct Device { /* private fields */ }Expand description
A single Orbbec device
Implementations§
Source§impl Device
impl Device
Sourcepub fn info(&self) -> Result<DeviceInfo, OrbbecError>
pub fn info(&self) -> Result<DeviceInfo, OrbbecError>
Get the device information
Sourcepub fn load_preset(&mut self, preset_name: &str) -> Result<(), OrbbecError>
pub fn load_preset(&mut self, preset_name: &str) -> Result<(), OrbbecError>
Sourcepub fn is_property_supported(
&self,
property: DeviceProperty,
permission: PermissionType,
) -> Result<bool, OrbbecError>
pub fn is_property_supported( &self, property: DeviceProperty, permission: PermissionType, ) -> Result<bool, OrbbecError>
Check if a device property is supported
§Arguments
property_id- The property to checkpermission- The permission type to check (read, write, or read/write)
Sourcepub fn set_property(
&mut self,
property: DeviceProperty,
) -> Result<(), OrbbecError>
pub fn set_property( &mut self, property: DeviceProperty, ) -> Result<(), OrbbecError>
Sourcepub fn get_property(
&self,
property: &mut DeviceProperty,
) -> Result<(), OrbbecError>
pub fn get_property( &self, property: &mut DeviceProperty, ) -> Result<(), OrbbecError>
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl !Send for Device
impl !Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more