pub struct DiscoverEngine { /* private fields */ }Implementations§
Source§impl DiscoverEngine
impl DiscoverEngine
pub fn new(concurrency: usize) -> Self
pub fn new_with_timeouts( concurrency: usize, ping_timeout_ms: u64, dns_timeout_ms: u64, ) -> Self
pub async fn scan_subnet(&self, subnet: Ipv4Net, resolve: bool) -> Vec<Host>
pub async fn scan_subnet_with_progress( &self, subnet: Ipv4Net, resolve: bool, progress: Option<Arc<dyn Fn(DiscoverProgress) + Send + Sync>>, ) -> Vec<Host>
Auto Trait Implementations§
impl Freeze for DiscoverEngine
impl !RefUnwindSafe for DiscoverEngine
impl Send for DiscoverEngine
impl Sync for DiscoverEngine
impl Unpin for DiscoverEngine
impl UnsafeUnpin for DiscoverEngine
impl !UnwindSafe for DiscoverEngine
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