[][src]Trait bitcoincore_rpc_async::Queryable

pub trait Queryable<C: RpcApi>: Sized + Send + Sync {
    type Id;
#[must_use]    pub fn query<'life0, 'life1, 'async_trait>(
        rpc: &'life0 C,
        id: &'life1 Self::Id
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

A type that can be queried from Bitcoin Core.

Associated Types

type Id[src]

Type of the ID used to query the item.

Loading content...

Required methods

#[must_use]pub fn query<'life0, 'life1, 'async_trait>(
    rpc: &'life0 C,
    id: &'life1 Self::Id
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Query the item using rpc and convert to Self.

Loading content...

Implementations on Foreign Types

impl<C: RpcApi + Sync> Queryable<C> for Block[src]

type Id = BlockHash

impl<C: RpcApi + Sync> Queryable<C> for Transaction[src]

type Id = Txid

impl<C: RpcApi + Sync> Queryable<C> for Option<GetTxOutResult>[src]

type Id = OutPoint

Loading content...

Implementors

Loading content...