Skip to content

Commit d150802

Browse files
authored
Merge pull request #702 from RustScan/bee-update-lib
Add documentation to RustScan library
2 parents d3229ff + dd9e075 commit d150802

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
//! start: 1,
2222
//! end: 1_000,
2323
//! };
24-
//! let strategy = PortStrategy::pick(&Some(range), None, ScanOrder::Random);
24+
//! let strategy = PortStrategy::pick(&Some(range), None, ScanOrder::Random); // can be serial, random or manual https://github.com/RustScan/RustScan/blob/master/src/port_strategy/mod.rs
2525
//! let scanner = Scanner::new(
26-
//! &addrs,
27-
//! 10,
28-
//! Duration::from_millis(100),
29-
//! 1,
30-
//! true,
31-
//! strategy,
32-
//! true,
33-
//! vec![9000],
34-
//! false,
26+
//! &addrs, // the addresses to scan
27+
//! 10, // batch_size is how many ports at a time should be scanned
28+
//! Duration::from_millis(100), //T imeout is the time RustScan should wait before declaring a port closed. As datatype Duration.
29+
//! 1, // Tries, how many retries should RustScan do?
30+
//! true, // greppable is whether or not RustScan should print things, or wait until the end to print only the ip
31+
//! strategy, // the port strategy used
32+
//! true, // accessible, should the output be A11Y compliant?
33+
//! vec![9000], // What ports should RustScan exclude?
34+
//! false, // is this a UDP scan?
3535
//! );
3636
//!
3737
//! let scan_result = block_on(scanner.run());

0 commit comments

Comments
 (0)