pub struct ZondConfig {
pub no_banner: bool,
pub no_dns: bool,
pub redact: bool,
pub quiet: u8,
pub disable_input: bool,
}Expand description
Global configuration options for the scanner execution.
This struct controls the runtime behavior of the application, including UI verbosity, network protocol constraints, and privacy features. It is typically constructed via CLI arguments or a configuration file.
Fields§
Toggles the display of the startup ASCII banner.
If true, the application starts immediately with log output/spinners
without printing the stylized branding. Useful for clean logs or
frequent executions.
no_dns: boolRestricts the scanner from generating outbound DNS traffic.
§Behavior
- True: The scanner will strictly avoid sending DNS queries (A, AAAA, PTR).
- False (Default): The scanner may resolve hostnames to IPs or perform reverse lookups.
Note: This does not prevent the underlying OS or network stack from processing incoming DNS packets if they were initiated elsewhere.
redact: boolEnables privacy mode for sensitive data in the output.
When enabled, personally identifiable information (PII) or sensitive network details are masked.
§Masked Fields
- IPv6 Suffixes (e.g Global Unicast)
- MAC Addresses
- Hostnames
Use this when sharing screenshots or logs publicly.
quiet: u8Controls the visual density and formatting of the terminal output.
This value is typically mapped from the -q or --quiet CLI flags.
§Levels
- 0 (Default): Full UI, including colors, spinners, and detailed tables.
- 1: Reduced styling. Minimal colors, simplified tables.
- 2: Raw mode. Output is strictly data (e.g., plain IP lists), suitable for piping into other tools.
disable_input: boolDisables interactive keyboard listeners.
When true, the application will not spawn threads to listen for
runtime commands (like pausing, resuming, or status checks).
§Use Cases
- Running in a CI/CD pipeline.
- Running as a background system service (daemon).
- Non-interactive testing environments.
Trait Implementations§
Source§impl Clone for ZondConfig
impl Clone for ZondConfig
Source§fn clone(&self) -> ZondConfig
fn clone(&self) -> ZondConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ZondConfig
impl Debug for ZondConfig
Source§impl Default for ZondConfig
impl Default for ZondConfig
Source§fn default() -> ZondConfig
fn default() -> ZondConfig
Auto Trait Implementations§
impl Freeze for ZondConfig
impl RefUnwindSafe for ZondConfig
impl Send for ZondConfig
impl Sync for ZondConfig
impl Unpin for ZondConfig
impl UnsafeUnpin for ZondConfig
impl UnwindSafe for ZondConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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