Skip to main content

DescriptorOutput

Trait DescriptorOutput 

Source
pub trait DescriptorOutput {
    // Required methods
    fn get_keypool<'life0, 'async_trait>(
        &'life0 self,
        options: GetKeypoolOptions,
        format: Option<OutputFormat>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_pubkey_descriptors<'life0, 'async_trait>(
        &'life0 self,
        account: Option<u32>,
        format: Option<OutputFormat>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Asynchronous CLI helpers that print descriptors to stdout.

Returned futures need not be Send.

Required Methods§

Source

fn get_keypool<'life0, 'async_trait>( &'life0 self, options: GetKeypoolOptions, format: Option<OutputFormat>, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Derives and prints one ranged keypool descriptor.

format selects a table or JSON record; None prints a descriptor with range and import flags. The DeviceManager implementation performs device I/O and prints nothing if no device is found.

Source

fn get_pubkey_descriptors<'life0, 'async_trait>( &'life0 self, account: Option<u32>, format: Option<OutputFormat>, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Derives and prints receive and change descriptors for supported address types.

account defaults to zero. format selects a table or a JSON object with receive and internal arrays; None prints one descriptor per line. The DeviceManager implementation performs device I/O and prints nothing if no device is found.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§