Struct webscan::DomainScanner
source · [−]pub struct DomainScanner { /* private fields */ }
Expand description
Structure for domain scan
Should be constructed using DomainScanner::new
Implementations
sourceimpl DomainScanner
impl DomainScanner
sourcepub fn new() -> Result<DomainScanner, String>
pub fn new() -> Result<DomainScanner, String>
Construct new UriScanner
sourcepub fn set_base_domain(&mut self, base_domain: String)
pub fn set_base_domain(&mut self, base_domain: String)
Set base Domain of scan target.
sourcepub fn set_timeout(&mut self, timeout: Duration)
pub fn set_timeout(&mut self, timeout: Duration)
Set scan timeout
sourcepub async fn run_scan(&mut self)
pub async fn run_scan(&mut self)
Run scan with current settings.
Results are stored in DomainScanner::scan_result
sourcepub fn get_result(&mut self) -> DomainScanResult
pub fn get_result(&mut self) -> DomainScanResult
Return scan result.
sourcepub async fn scan(&mut self) -> DomainScanResult
pub async fn scan(&mut self) -> DomainScanResult
Run scan and return result
Trait Implementations
sourceimpl Clone for DomainScanner
impl Clone for DomainScanner
sourcefn clone(&self) -> DomainScanner
fn clone(&self) -> DomainScanner
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for DomainScanner
impl Send for DomainScanner
impl Sync for DomainScanner
impl Unpin for DomainScanner
impl UnwindSafe for DomainScanner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more