pub trait ControlNodeDelegate: Send + Sync {
    // Required methods
    fn spacetime_dns<'life0, 'life1, 'async_trait>(
        &'life0 self,
        domain: &'life1 DomainName
    ) -> Pin<Box<dyn Future<Output = Result<Option<Address>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn alloc_spacetime_identity<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Identity>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn withdraw_energy<'life0, 'life1, 'async_trait>(
        &'life0 self,
        identity: &'life1 Identity,
        amount: EnergyQuanta
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn public_key(&self) -> &DecodingKey;
    fn private_key(&self) -> &EncodingKey;
}

Required Methods§

source

fn spacetime_dns<'life0, 'life1, 'async_trait>( &'life0 self, domain: &'life1 DomainName ) -> Pin<Box<dyn Future<Output = Result<Option<Address>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

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

source

fn withdraw_energy<'life0, 'life1, 'async_trait>( &'life0 self, identity: &'life1 Identity, amount: EnergyQuanta ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn public_key(&self) -> &DecodingKey

source

fn private_key(&self) -> &EncodingKey

Implementations on Foreign Types§

source§

impl<T: ControlNodeDelegate + ?Sized> ControlNodeDelegate for Arc<T>

source§

fn spacetime_dns<'life0, 'life1, 'async_trait>( &'life0 self, domain: &'life1 DomainName ) -> Pin<Box<dyn Future<Output = Result<Option<Address>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

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

source§

fn withdraw_energy<'life0, 'life1, 'async_trait>( &'life0 self, identity: &'life1 Identity, amount: EnergyQuanta ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn public_key(&self) -> &DecodingKey

source§

fn private_key(&self) -> &EncodingKey

Implementors§