pub struct ScannerConfig {
pub max_results: usize,
pub min_descriptor_size: usize,
pub max_descriptor_size: usize,
}Expand description
Configuration for the scanner
Fields§
§max_results: usizeMaximum number of descriptors to find (0 = unlimited)
min_descriptor_size: usizeMinimum size for a valid descriptor (filters noise)
max_descriptor_size: usizeMaximum size for a valid descriptor (filters garbage)
Implementations§
Source§impl ScannerConfig
impl ScannerConfig
Sourcepub fn max_results(self, max: usize) -> Self
pub fn max_results(self, max: usize) -> Self
Sets the maximum number of results to return
Sourcepub fn min_descriptor_size(self, size: usize) -> Self
pub fn min_descriptor_size(self, size: usize) -> Self
Sets the minimum descriptor size filter
Sourcepub fn max_descriptor_size(self, size: usize) -> Self
pub fn max_descriptor_size(self, size: usize) -> Self
Sets the maximum descriptor size filter
Trait Implementations§
Source§impl Clone for ScannerConfig
impl Clone for ScannerConfig
Source§fn clone(&self) -> ScannerConfig
fn clone(&self) -> ScannerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScannerConfig
impl Debug for ScannerConfig
Auto Trait Implementations§
impl Freeze for ScannerConfig
impl RefUnwindSafe for ScannerConfig
impl Send for ScannerConfig
impl Sync for ScannerConfig
impl Unpin for ScannerConfig
impl UnwindSafe for ScannerConfig
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