Skip to main content

SubringInterface

Trait 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<(), Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: '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<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

join a subring

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

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