Trait penumbra_ibc::component::HostInterface

source ·
pub trait HostInterface {
    // Required methods
    fn get_chain_id<'async_trait, S>(
        state: S
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where S: 'async_trait + StateRead;
    fn get_revision_number<'async_trait, S>(
        state: S
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where S: 'async_trait + StateRead;
    fn get_block_height<'async_trait, S>(
        state: S
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where S: 'async_trait + StateRead;
    fn get_block_timestamp<'async_trait, S>(
        state: S
    ) -> Pin<Box<dyn Future<Output = Result<Time>> + Send + 'async_trait>>
       where S: 'async_trait + StateRead;
}
Available on crate feature component only.

Required Methods§

source

fn get_chain_id<'async_trait, S>( state: S ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where S: 'async_trait + StateRead,

source

fn get_revision_number<'async_trait, S>( state: S ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where S: 'async_trait + StateRead,

source

fn get_block_height<'async_trait, S>( state: S ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where S: 'async_trait + StateRead,

source

fn get_block_timestamp<'async_trait, S>( state: S ) -> Pin<Box<dyn Future<Output = Result<Time>> + Send + 'async_trait>>
where S: 'async_trait + StateRead,

Object Safety§

This trait is not object safe.

Implementors§