pub struct FullScannerBuilder { /* private fields */ }Expand description
Builder for FullScanner.
Implementations§
Source§impl FullScannerBuilder
impl FullScannerBuilder
Sourcepub fn interface<VALUE: Into<Arc<NetworkInterface>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn interface<VALUE: Into<Arc<NetworkInterface>>>( &mut self, value: VALUE, ) -> &mut Self
Network interface to use for scanning
Sourcepub fn wire<VALUE: Into<Wire>>(&mut self, value: VALUE) -> &mut Self
pub fn wire<VALUE: Into<Wire>>(&mut self, value: VALUE) -> &mut Self
Wire for reading and sending packets on the wire
Sourcepub fn targets<VALUE: Into<Arc<IPTargets>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn targets<VALUE: Into<Arc<IPTargets>>>( &mut self, value: VALUE, ) -> &mut Self
IP targets to scan for device discovery
Sourcepub fn ports<VALUE: Into<Arc<PortTargets>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn ports<VALUE: Into<Arc<PortTargets>>>( &mut self, value: VALUE, ) -> &mut Self
Port targets to scan on discovered devices
Sourcepub fn vendor<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn vendor<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to include vendor lookups for discovered devices
Sourcepub fn host<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn host<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether to include hostname lookups for discovered devices
Sourcepub fn idle_timeout<VALUE: Into<Duration>>(&mut self, value: VALUE) -> &mut Self
pub fn idle_timeout<VALUE: Into<Duration>>(&mut self, value: VALUE) -> &mut Self
Duration to wait for responses after scanning completes
Sourcepub fn throttle<VALUE: Into<Duration>>(&mut self, value: VALUE) -> &mut Self
pub fn throttle<VALUE: Into<Duration>>(&mut self, value: VALUE) -> &mut Self
Throttles speed at which packets are sent. Higher throttles result in more accurate scans
Sourcepub fn notifier<VALUE: Into<Sender<ScanMessage>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn notifier<VALUE: Into<Sender<ScanMessage>>>( &mut self, value: VALUE, ) -> &mut Self
Channel for sending scan results and status messages
Sourcepub fn source_port<VALUE: Into<u16>>(&mut self, value: VALUE) -> &mut Self
pub fn source_port<VALUE: Into<u16>>(&mut self, value: VALUE) -> &mut Self
Source port for packet listener and incoming packet identification
Sourcepub fn oui<VALUE: Into<Option<Arc<dyn Oui>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn oui<VALUE: Into<Option<Arc<dyn Oui>>>>( &mut self, value: VALUE, ) -> &mut Self
Used to lookup vendor info for mac addresses
Sourcepub fn build(&self) -> Result<FullScanner, FullScannerBuilderError>
pub fn build(&self) -> Result<FullScanner, FullScannerBuilderError>
Trait Implementations§
Source§impl Clone for FullScannerBuilder
impl Clone for FullScannerBuilder
Source§fn clone(&self) -> FullScannerBuilder
fn clone(&self) -> FullScannerBuilder
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 moreAuto Trait Implementations§
impl Freeze for FullScannerBuilder
impl !RefUnwindSafe for FullScannerBuilder
impl Send for FullScannerBuilder
impl Sync for FullScannerBuilder
impl Unpin for FullScannerBuilder
impl UnsafeUnpin for FullScannerBuilder
impl !UnwindSafe for FullScannerBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more