pub struct PoolListArgs {
pub all: bool,
pub json: bool,
pub admin_url: Option<String>,
pub timeout_ms: u64,
pub chain: PoolChainArgs,
}Expand description
decdn pool list / status flags.
Read-only. The default listing needs no chain coordinates and no keystore:
it reads the data dir’s client buyer store — unless that data dir belongs to
a decdn-node daemon, in which case it asks the daemon over the admin RPC
while that daemon runs and reads its store off disk when it does not, and
the admin flags below apply. --all is the other view, and it does need the
chain flags and the keystore.
Fields§
§all: boolList every pool this keystore owns ON CHAIN (getPools), in every
lifecycle state, marking which ones the local store tracks.
The view that survives a reset identity.data_dir, because it reads no
local file to build its list. When the two views disagree, believe the
chain: the disagreement is itself the diagnostic.
Sends no transaction and writes no pool record, so unlike close --all
/ reclaim --all it is NOT refused on a node’s data dir. Needs
--rpc-url, --payment-pool-address, and the keystore whose address it
enumerates by.
json: boolEmit the pools as JSON instead of the aligned table.
admin_url: Option<String>Base URL of the daemon’s admin HTTP surface, used only when the data
dir turns out to be a node’s. Also read from DECDN_ADMIN_URL; if
unset, the port is derived from observability.admin_port in the
config file, then the built-in default.
timeout_ms: u64Roundtrip timeout in milliseconds for that admin call. Must be > 0 —
jsonrpsee reads a zero duration as “never” rather than “immediately”.
Under --all a zero skips the daemon lookup and leaves TRACKED
unknown instead of failing.
chain: PoolChainArgsChain + store coordinates. Only --data-dir matters to the default
listing; the rest are what --all enumerates with.
Trait Implementations§
Source§impl Args for PoolListArgs
impl Args for PoolListArgs
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 PoolListArgs
impl Debug for PoolListArgs
Source§impl FromArgMatches for PoolListArgs
impl FromArgMatches for PoolListArgs
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 PoolListArgs
impl RefUnwindSafe for PoolListArgs
impl Send for PoolListArgs
impl Sync for PoolListArgs
impl Unpin for PoolListArgs
impl UnsafeUnpin for PoolListArgs
impl UnwindSafe for PoolListArgs
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