hick-reactor 0.1.0

Async mDNS driver layered on `mdns-proto` + `hick-udp`, runtime-agnostic via `agnostic-net` (tokio & smol).
Documentation
use mdns_proto::EndpointConfig;

use super::ServerOptions;

#[test]
fn builders_and_accessors_roundtrip() {
  let o = ServerOptions::default()
    .with_ipv4(false)
    .with_ipv6(true)
    .with_interface_index(Some(3))
    .with_max_payload_size(1400)
    .with_max_recv_packet_size(8000)
    .with_update_channel_capacity(128)
    .with_endpoint_config(EndpointConfig::new());
  assert!(!o.ipv4());
  assert!(o.ipv6());
  assert_eq!(o.interface_index(), Some(3));
  assert_eq!(o.max_payload_size(), 1400);
  assert_eq!(o.max_recv_packet_size(), 8000);
  assert_eq!(o.update_channel_capacity(), 128); // deprecated no-op getter
  let _ = o.endpoint_config();
}