pub struct ScannerBuilder { /* private fields */ }Expand description
Builder for a custom ScannerSdk.
Implementations§
Source§impl ScannerBuilder
impl ScannerBuilder
Sourcepub fn phase<P>(self, phase: P) -> Selfwhere
P: ScanPhase + 'static,
pub fn phase<P>(self, phase: P) -> Selfwhere
P: ScanPhase + 'static,
Adds a phase. Execution order is determined by phase_number().
Sourcepub fn boxed_phase(self, phase: Box<dyn ScanPhase>) -> Self
pub fn boxed_phase(self, phase: Box<dyn ScanPhase>) -> Self
Adds a boxed phase selected dynamically by the host.
Sourcepub fn client(self, client: Client) -> Self
pub fn client(self, client: Client) -> Self
Replaces the raw HTTP client used by phase one and custom legacy phases. Built-in phases two through nine use isolated, bounded, redirect-disabled authorities instead.
Sourcepub fn discovery_limits(self, limits: DiscoveryLimits) -> Self
pub fn discovery_limits(self, limits: DiscoveryLimits) -> Self
Replaces the finite exact-origin envelope shared by built-in discovery phases 2–4.
Sourcepub fn verification_limits(self, limits: VerificationLimits) -> Self
pub fn verification_limits(self, limits: VerificationLimits) -> Self
Replaces the finite exact-origin envelope shared by built-in legacy verification phases five through nine.
Sourcepub fn phase_timeout(self, timeout: Duration) -> Self
pub fn phase_timeout(self, timeout: Duration) -> Self
Sets a minimum one-second timeout for each phase.
Sourcepub fn event_bus(self, event_bus: Arc<EventBus>) -> Self
pub fn event_bus(self, event_bus: Arc<EventBus>) -> Self
Replaces the event bus used for lifecycle publication.
Sourcepub fn build(self) -> ScannerSdk
pub fn build(self) -> ScannerSdk
Builds a reusable scanner.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ScannerBuilder
impl !UnwindSafe for ScannerBuilder
impl Freeze for ScannerBuilder
impl Send for ScannerBuilder
impl Sync for ScannerBuilder
impl Unpin for ScannerBuilder
impl UnsafeUnpin for ScannerBuilder
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