summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
blob: 6e2feb44885955c51ce389922838c2cc69b5aaa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pub use error::{Error, Result};

pub mod error;
pub mod netlink;
pub mod scanner;

pub trait HostProvider {
    fn send_hosts(
        &self,
        tx: tokio::sync::mpsc::Sender<std::net::IpAddr>,
        cache: std::sync::Arc<std::sync::Mutex<std::collections::HashSet<std::net::IpAddr>>>,
    ) -> impl std::future::Future<Output = Result<()>> + Send;
}