Trait rings_core::message::handlers::subring::SubringInterface

source ·
pub trait SubringInterface<const REDUNDANT: u16> {
    // Required method
    fn subring_join<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

SubringInterface should imply necessary operator for DHT Subring

Required Methods§

source

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

join a subring

Implementors§

source§

impl<const REDUNDANT: u16> SubringInterface<REDUNDANT> for Swarm