Struct realsense_rust::sensor::Sensor[][src]

pub struct Sensor<Kind> where
    Kind: SensorKind
{ /* fields omitted */ }

Represents a sensor on device.

Implementations

impl<Kind> Sensor<Kind> where
    Kind: SensorKind
[src]

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]

pub fn try_extend_to<Kind>(self) -> Result<Result<Sensor<Kind>, Self>> where
    Kind: NonAnySensorKind
[src]

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]

impl<Kind> Drop for Sensor<Kind> where
    Kind: SensorKind
[src]

impl<Kind> Send for Sensor<Kind> where
    Kind: SensorKind
[src]

impl<Kind> ToOptions for Sensor<Kind> where
    Kind: SensorKind
[src]

Auto Trait Implementations

impl<Kind> RefUnwindSafe for Sensor<Kind> where
    Kind: RefUnwindSafe

impl<Kind> !Sync for Sensor<Kind>

impl<Kind> Unpin for Sensor<Kind> where
    Kind: Unpin

impl<Kind> UnwindSafe for Sensor<Kind> where
    Kind: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,