pub struct ScannerSdk { /* private fields */ }Expand description
Reusable legacy scanner assembled from application-defined ScanPhase
values.
Custom phases can use the raw compatibility client and therefore cannot inherit the bounded-accounting claim of either built-in transport slice.
Implementations§
Source§impl ScannerSdk
impl ScannerSdk
Sourcepub fn builder() -> ScannerBuilder
pub fn builder() -> ScannerBuilder
Starts a custom scanner builder.
Sourcepub async fn scan(&self, target: &str) -> Result<RunReport>
pub async fn scan(&self, target: &str) -> Result<RunReport>
Executes configured phases against an authorized target.
Sourcepub async fn scan_with_cancellation(
&self,
target: &str,
cancellation: CancellationToken,
) -> Result<RunReport>
pub async fn scan_with_cancellation( &self, target: &str, cancellation: CancellationToken, ) -> Result<RunReport>
Executes configured phases with a host-owned cancellation token.
Auto Trait Implementations§
impl !RefUnwindSafe for ScannerSdk
impl !UnwindSafe for ScannerSdk
impl Freeze for ScannerSdk
impl Send for ScannerSdk
impl Sync for ScannerSdk
impl Unpin for ScannerSdk
impl UnsafeUnpin for ScannerSdk
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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