pub trait Host: Send + Sync {
    // Required method
    fn identity<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<PublicKey, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Interface to the (untrusted) host node.

Required Methods§

source

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

Returns the identity of the host node.

Implementors§