pub struct LookupArgs {
pub node_id: Option<String>,
pub region: Option<String>,
pub probe: bool,
pub timeout_ms: u64,
pub chain: ChainArgs,
}Expand description
decdn node lookup — unpaid client-side discovery of active nodes via
CapacityBond.getRegisteredNodes (#1481). See NodeCommand::Lookup for the
full description.
Fields§
§node_id: Option<String>Filter to the single node with this exact iroh node id (the same form
decdn probe --node-id accepts). Combinable with --region; with
neither flag every active node is listed.
region: Option<String>Filter to nodes whose self-attested region hint (ADR 030) matches this
ISO 3166-1 alpha-2 code exactly (case-insensitive — normalized the
same way as decdn node register --region).
probe: boolProbe each matching candidate over cdn/probe/v1 and sort ascending
by measured round-trip time. Candidates that don’t answer are kept at
the end (rather than dropped) with no RTT. Without this flag, no
network probing happens and candidates carry no RTT.
timeout_ms: u64Roundtrip timeout in milliseconds for each --probe probe. Ignored
without --probe.
chain: ChainArgsChain coordinates: RPC endpoint, contract addresses, and keystore.
Trait Implementations§
Source§impl Args for LookupArgs
impl Args for LookupArgs
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 LookupArgs
impl Debug for LookupArgs
Source§impl FromArgMatches for LookupArgs
impl FromArgMatches for LookupArgs
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.Auto Trait Implementations§
impl Freeze for LookupArgs
impl RefUnwindSafe for LookupArgs
impl Send for LookupArgs
impl Sync for LookupArgs
impl Unpin for LookupArgs
impl UnsafeUnpin for LookupArgs
impl UnwindSafe for LookupArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more