[][src]Struct rplidar_drv::ScanOptions

pub struct ScanOptions {
    pub scan_mode: Option<u16>,
    pub force_scan: bool,
    pub options: u32,
}

Scan options

Fields

scan_mode: Option<u16>

Specify this field to force use specific scan mode

force_scan: bool

Make LIDAR scan regardless of it's spinning or not

options: u32

Parameters sent to LIDAR. Please use 0 for now

Methods

impl ScanOptions[src]

pub fn default() -> ScanOptions[src]

default options

pub fn with_mode(scan_mode: u16) -> ScanOptions[src]

with specific mode

pub fn force_scan() -> ScanOptions[src]

force scan

pub fn force_scan_with_mode(scan_mode: u16) -> ScanOptions[src]

force scan with mode

Trait Implementations

impl Clone for ScanOptions[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<ScanOptions> for ScanOptions[src]

impl Debug for ScanOptions[src]

Auto Trait Implementations

impl Send for ScanOptions

impl Sync for ScanOptions

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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