quick_file_transfer/config/mdns/resolve.rs
1use crate::config::util::*;
2
3#[derive(Debug, Args, Clone)]
4#[command(flatten_help = true)]
5pub struct MdnsResolveArgs {
6 /// mDNS hostname to resolve e.g. `foo` (translates to `foo.local.`)
7 pub hostname: String,
8 /// Sets a timeout in milliseconds (default 10s)
9 #[arg(long, default_value_t = 1000)]
10 pub timeout_ms: u64,
11 /// Exit as soon as the first IP of the specified hostname has been resolved
12 #[arg(short, long, action = ArgAction::SetTrue)]
13 pub short_circuit: bool,
14}