[−][src]Struct realsense_rust::sensor::Sensor
Represents a sensor on device.
Methods
impl<Kind> Sensor<Kind> where
Kind: SensorKind,
[src]
Kind: SensorKind,
pub fn device(&self) -> RsResult<Device>
[src]
Gets the corresponding device for sensor.
pub fn get_option(&self, option: Rs2Option) -> RsResult<f32>
[src]
Gets an attribute on sensor.
It will return error if the attribute is not available on sensor.
pub fn stream_profiles(&self) -> RsResult<StreamProfileList>
[src]
List stream profiles on sensor.
pub fn recommended_processing_blocks(&self) -> RsResult<ProcessingBlockList>
[src]
Retrieves list of recommended processing blocks.
pub fn name(&self) -> RsResult<&CStr>
[src]
pub fn serial_number(&self) -> RsResult<&CStr>
[src]
pub fn recommended_firmware_version(&self) -> RsResult<&CStr>
[src]
pub fn physical_port(&self) -> RsResult<&CStr>
[src]
pub fn debug_op_code(&self) -> RsResult<&CStr>
[src]
pub fn advanced_mode(&self) -> RsResult<&CStr>
[src]
pub fn product_id(&self) -> RsResult<&CStr>
[src]
pub fn camera_locked(&self) -> RsResult<&CStr>
[src]
pub fn usb_type_descriptor(&self) -> RsResult<&CStr>
[src]
pub fn product_line(&self) -> RsResult<&CStr>
[src]
pub fn asic_serial_number(&self) -> RsResult<&CStr>
[src]
pub fn firmware_update_id(&self) -> RsResult<&CStr>
[src]
pub fn count(&self) -> RsResult<&CStr>
[src]
pub fn info(&self, kind: CameraInfo) -> RsResult<&CStr>
[src]
pub fn is_info_supported(&self, kind: CameraInfo) -> RsResult<bool>
[src]
impl Sensor<Any>
[src]
pub fn is_extendable_to(&self, extension: Extension) -> RsResult<bool>
[src]
pub fn try_extend_to<NewKind>(self) -> RsResult<Result<Sensor<NewKind>, Self>> where
NewKind: NonAnySensorKind,
[src]
NewKind: NonAnySensorKind,
Extends to a specific sensor subtype.
pub fn try_extend(self) -> RsResult<ExtendedSensor>
[src]
Extends to one of a sensor subtype.
impl Sensor<Depth>
[src]
pub fn depth_units(&self) -> RsResult<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,
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,
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> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
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.
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.
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>,