Struct realsense_rust::sensor::Sensor [−][src]
Represents a sensor on device.
Implementations
impl<Kind> Sensor<Kind> where
Kind: SensorKind,
[src]
Kind: SensorKind,
pub fn device(&self) -> Result<Device>
[src]
Gets the corresponding device for sensor.
pub fn get_option(&self, option: Rs2Option) -> Result<f32>
[src]
Gets an attribute on sensor.
It will return error if the attribute is not available on sensor.
pub fn stream_profiles(&self) -> Result<StreamProfileList>
[src]
List stream profiles on sensor.
pub fn recommended_processing_blocks(&self) -> Result<ProcessingBlockList>
[src]
Retrieves list of recommended processing blocks.
pub fn name(&self) -> Result<&str>
[src]
pub fn serial_number(&self) -> Result<&str>
[src]
pub fn recommended_firmware_version(&self) -> Result<&str>
[src]
pub fn physical_port(&self) -> Result<&str>
[src]
pub fn debug_op_code(&self) -> Result<&str>
[src]
pub fn advanced_mode(&self) -> Result<&str>
[src]
pub fn product_id(&self) -> Result<&str>
[src]
pub fn camera_locked(&self) -> Result<&str>
[src]
pub fn usb_type_descriptor(&self) -> Result<&str>
[src]
pub fn product_line(&self) -> Result<&str>
[src]
pub fn asic_serial_number(&self) -> Result<&str>
[src]
pub fn firmware_update_id(&self) -> Result<&str>
[src]
pub fn count(&self) -> Result<&str>
[src]
pub fn info(&self, kind: CameraInfo) -> Result<&str>
[src]
pub fn is_info_supported(&self, kind: CameraInfo) -> Result<bool>
[src]
pub fn into_raw(self) -> *mut rs2_sensor
[src]
pub unsafe fn from_raw(ptr: *mut rs2_sensor) -> Self
[src]
impl Sensor<Any>
[src]
pub fn is_extendable_to<Kind>(&self) -> Result<bool> where
Kind: NonAnySensorKind,
[src]
Kind: NonAnySensorKind,
pub fn try_extend_to<Kind>(self) -> Result<Result<Sensor<Kind>, Self>> where
Kind: NonAnySensorKind,
[src]
Kind: NonAnySensorKind,
Extends to a specific sensor subtype.
pub fn try_extend(self) -> Result<ExtendedSensor>
[src]
Extends to one of a sensor subtype.
impl Sensor<Depth>
[src]
pub fn depth_units(&self) -> Result<f32>
[src]
Gets the depth units of depth sensor.
Trait Implementations
impl<Kind: Debug> Debug for Sensor<Kind> where
Kind: SensorKind,
[src]
Kind: SensorKind,
impl<Kind> Drop for Sensor<Kind> where
Kind: SensorKind,
[src]
Kind: SensorKind,
impl<Kind> Send for Sensor<Kind> where
Kind: SensorKind,
[src]
Kind: SensorKind,
impl<Kind> ToOptions for Sensor<Kind> where
Kind: SensorKind,
[src]
Kind: SensorKind,
fn get_options_ptr(&self) -> NonNull<rs2_options>
[src]
fn to_options(&self) -> Result<HashMap<Rs2Option, OptionHandle>>
[src]
Auto Trait Implementations
impl<Kind> RefUnwindSafe for Sensor<Kind> where
Kind: RefUnwindSafe,
Kind: RefUnwindSafe,
impl<Kind> !Sync for Sensor<Kind>
impl<Kind> Unpin for Sensor<Kind> where
Kind: Unpin,
Kind: Unpin,
impl<Kind> UnwindSafe for Sensor<Kind> where
Kind: UnwindSafe,
Kind: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,