Skip to main content

Chain

Trait Chain 

Source
pub trait Chain {
    // Required methods
    fn get<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        acc: &'life1 Acc,
        key: &'life2 Int,
    ) -> Pin<Box<dyn Future<Output = Result<Int>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn acc<'life0, 'life1, 'async_trait>(
        &'life0 self,
        acc: &'life1 Acc,
    ) -> Pin<Box<dyn Future<Output = Result<Account>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn code<'life0, 'life1, 'async_trait>(
        &'life0 self,
        acc: &'life1 Acc,
    ) -> Pin<Box<dyn Future<Output = Result<(Buf, Int)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn nonce<'life0, 'life1, 'async_trait>(
        &'life0 self,
        acc: &'life1 Acc,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn balance<'life0, 'life1, 'async_trait>(
        &'life0 self,
        acc: &'life1 Acc,
    ) -> Pin<Box<dyn Future<Output = Result<Int>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn head<'life0, 'async_trait>(
        &'life0 self,
        number: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Head>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn block<'life0, 'async_trait>(
        &'life0 self,
        number: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Block>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn chain_id<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, acc: &'life1 Acc, key: &'life2 Int, ) -> Pin<Box<dyn Future<Output = Result<Int>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn acc<'life0, 'life1, 'async_trait>( &'life0 self, acc: &'life1 Acc, ) -> Pin<Box<dyn Future<Output = Result<Account>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn code<'life0, 'life1, 'async_trait>( &'life0 self, acc: &'life1 Acc, ) -> Pin<Box<dyn Future<Output = Result<(Buf, Int)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn nonce<'life0, 'life1, 'async_trait>( &'life0 self, acc: &'life1 Acc, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn balance<'life0, 'life1, 'async_trait>( &'life0 self, acc: &'life1 Acc, ) -> Pin<Box<dyn Future<Output = Result<Int>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn head<'life0, 'async_trait>( &'life0 self, number: u64, ) -> Pin<Box<dyn Future<Output = Result<Head>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn block<'life0, 'async_trait>( &'life0 self, number: u64, ) -> Pin<Box<dyn Future<Output = Result<Block>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn chain_id<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§