refact: Move basic types to harmony_types crate to avoid external dependencies.

This includes Id, IpAddress, Url and some other heavily used types
This commit is contained in:
2025-08-30 17:52:02 -04:00
parent cb4382fbb5
commit f9906cb419
69 changed files with 274 additions and 165 deletions

View File

@@ -4,8 +4,7 @@ use crate::local_presence::SERVICE_NAME;
pub type DiscoveryEvent = ServiceEvent;
pub fn discover_agents(timeout: Option<u64>, on_event: impl Fn(DiscoveryEvent) + Send + 'static)
{
pub fn discover_agents(timeout: Option<u64>, on_event: impl Fn(DiscoveryEvent) + Send + 'static) {
// Create a new mDNS daemon.
let mdns = ServiceDaemon::new().expect("Failed to create mDNS daemon");