FullScannerArgs

Struct FullScannerArgs 

Source
pub struct FullScannerArgs<'net> {
    pub interface: &'net NetworkInterface,
    pub packet_reader: Arc<Mutex<dyn Reader>>,
    pub packet_sender: Arc<Mutex<dyn Sender>>,
    pub targets: Arc<IPTargets>,
    pub ports: Arc<PortTargets>,
    pub source_port: u16,
    pub include_vendor: bool,
    pub include_host_names: bool,
    pub idle_timeout: Duration,
    pub notifier: Sender<ScanMessage>,
}
Expand description

Data structure holding parameters needed to create instance of FullScanner

Fields§

§interface: &'net NetworkInterface

The network interface to use when scanning

§packet_reader: Arc<Mutex<dyn Reader>>

A packet Reader implementation (can use default provided in packet crate)

§packet_sender: Arc<Mutex<dyn Sender>>

A packet Sender implementation (can use default provided in packet crate)

§targets: Arc<IPTargets>

IPTargets to scan

§ports: Arc<PortTargets>

PortTargets to scan for each detected device

§source_port: u16

An open source port to listen for incoming packets (can use network packet to find open port)

§include_vendor: bool

Whether or not to include vendor look-ups for detected devices

§include_host_names: bool

Whether or not to include hostname look-ups for detected devices

§idle_timeout: Duration

The amount of time to wait for incoming packets after scanning all targets

§notifier: Sender<ScanMessage>

Channel to send messages regarding devices being scanned, and detected devices

Auto Trait Implementations§

§

impl<'net> Freeze for FullScannerArgs<'net>

§

impl<'net> RefUnwindSafe for FullScannerArgs<'net>

§

impl<'net> Send for FullScannerArgs<'net>

§

impl<'net> Sync for FullScannerArgs<'net>

§

impl<'net> Unpin for FullScannerArgs<'net>

§

impl<'net> UnwindSafe for FullScannerArgs<'net>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.