pub struct ProbeArgs {
pub node_id: String,
pub hash: String,
pub addr: Option<SocketAddr>,
pub relay_url: Option<String>,
pub timeout_ms: u64,
pub json: bool,
}Expand description
Probe a running deCDN node over the cdn/probe/v1 ALPN.
Connects to the target node, sends a ProbeRequest,
and prints the ProbeResponse. Reachability (a
direct --addr or a relay) is validated at runtime rather than by a clap ArgGroup,
because the relay can also come from config (network.relay_urls, #935).
Fields§
§node_id: StringTarget node id (iroh EndpointId, z-base32).
hash: StringBLAKE3 hash of the blob to query availability for: 64 hex chars
(optional 0x prefix), the same form cache.pinned_hashes accepts.
cdn/probe/v1 is a content-availability query — the node answers
whether it holds this blob (ADR 005).
addr: Option<SocketAddr>Direct socket address of the target node (e.g. 127.0.0.1:4433).
relay_url: Option<String>iroh relay URL to use for discovery-based resolution. Overrides
network.relay_urls from config when set (#935); omit it to use the
configured relays.
timeout_ms: u64Overall timeout for the probe roundtrip, in milliseconds.
json: boolPrint the response as a single line of JSON instead of a pretty block.
Trait Implementations§
Source§impl Args for ProbeArgs
impl Args for ProbeArgs
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 FromArgMatches for ProbeArgs
impl FromArgMatches for ProbeArgs
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 ProbeArgs
impl RefUnwindSafe for ProbeArgs
impl Send for ProbeArgs
impl Sync for ProbeArgs
impl Unpin for ProbeArgs
impl UnsafeUnpin for ProbeArgs
impl UnwindSafe for ProbeArgs
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
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