pub struct DistanceSensor(/* private fields */);
Implementations§
Source§impl DistanceSensor
impl DistanceSensor
pub fn enable(&self, sampling_period: i32)
pub fn disable(&self)
pub fn get_sampling_period(&self) -> i32
pub fn get_value(&self) -> f64
pub fn get_max_value(&self) -> f64
pub fn get_min_value(&self) -> f64
pub fn get_aperture(&self) -> f64
pub fn get_lookup_table_size(&self) -> i32
pub fn get_lookup_table(&self) -> Result<&[f64], DistanceSensorError>
pub fn get_type(&self) -> DistanceSensorType
Auto Trait Implementations§
impl Freeze for DistanceSensor
impl RefUnwindSafe for DistanceSensor
impl Send for DistanceSensor
impl Sync for DistanceSensor
impl Unpin for DistanceSensor
impl UnwindSafe for DistanceSensor
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