pub struct DiscoverArgs {
pub timeout: u64,
pub passive: bool,
pub role: Option<RoleFilter>,
pub caps: Vec<CapFilter>,
pub hint: Option<HintPrefixArg>,
pub via: Option<KeyArg>,
}Fields§
§timeout: u64How long to listen, in seconds.
A node holds its answer for a random delay of up to thirty seconds so that everyone within earshot does not reply at once, so anything shorter than that hears only the eager.
passive: boolListen without asking: transmit nothing at all.
What arrives is whatever nodes advertise on their own schedule, which is a much quieter way to learn the same thing, given time.
role: Option<RoleFilter>Ask only nodes in this role to answer.
caps: Vec<CapFilter>Ask only nodes with every one of these capabilities.
hint: Option<HintPrefixArg>Ask only nodes whose hint starts with these bytes, as one to three hex octets.
via: Option<KeyArg>Ask from this node’s vantage rather than from here.
The question is source-routed through the routers on the way to
it, so what answers is what can hear that node. Needs a
remembered source route — routes lists what there is.
Trait Implementations§
Source§impl Args for DiscoverArgs
impl Args for DiscoverArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for DiscoverArgs
impl Debug for DiscoverArgs
Source§impl FromArgMatches for DiscoverArgs
impl FromArgMatches for DiscoverArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.