Struct rplidar_driver::ScanOptions
source · [−]Expand description
Scan options
Fields
scan_mode: Option<u16>Specify this field to force use specific scan mode
force_scan: boolMake LIDAR scan regardless of it’s spinning or not
options: u32Parameters sent to LIDAR. Please use 0 for now
Implementations
sourceimpl ScanOptions
impl ScanOptions
sourcepub fn default() -> ScanOptions
pub fn default() -> ScanOptions
default options
sourcepub fn with_mode(scan_mode: u16) -> ScanOptions
pub fn with_mode(scan_mode: u16) -> ScanOptions
with specific mode
sourcepub fn force_scan() -> ScanOptions
pub fn force_scan() -> ScanOptions
force scan
sourcepub fn force_scan_with_mode(scan_mode: u16) -> ScanOptions
pub fn force_scan_with_mode(scan_mode: u16) -> ScanOptions
force scan with mode
Trait Implementations
sourceimpl Clone for ScanOptions
impl Clone for ScanOptions
sourcefn clone(&self) -> ScanOptions
fn clone(&self) -> ScanOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ScanOptions
impl Debug for ScanOptions
sourceimpl PartialEq<ScanOptions> for ScanOptions
impl PartialEq<ScanOptions> for ScanOptions
sourcefn eq(&self, other: &ScanOptions) -> bool
fn eq(&self, other: &ScanOptions) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ScanOptions) -> bool
fn ne(&self, other: &ScanOptions) -> bool
This method tests for !=.
impl Eq for ScanOptions
impl StructuralEq for ScanOptions
impl StructuralPartialEq for ScanOptions
Auto Trait Implementations
impl RefUnwindSafe for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnwindSafe for ScanOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more