pub struct UdpScanner { /* private fields */ }Expand description
Concurrent UDP port scanner. Same permit model as PortScanner.
Implementations§
Source§impl UdpScanner
impl UdpScanner
pub fn new(concurrency: usize) -> Self
Sourcepub async fn scan_host_with_progress(
&self,
target: IpAddr,
ports: Vec<u16>,
timeout_ms: u64,
progress: Option<Arc<dyn Fn(PortScanProgress) + Send + Sync>>,
) -> Result<Vec<PortResult>>
pub async fn scan_host_with_progress( &self, target: IpAddr, ports: Vec<u16>, timeout_ms: u64, progress: Option<Arc<dyn Fn(PortScanProgress) + Send + Sync>>, ) -> Result<Vec<PortResult>>
Probe ports on target over UDP. Validates the port list, as
PortScanner does, because this is public API.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for UdpScanner
impl !UnwindSafe for UdpScanner
impl Freeze for UdpScanner
impl Send for UdpScanner
impl Sync for UdpScanner
impl Unpin for UdpScanner
impl UnsafeUnpin for UdpScanner
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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