Skip to main content

PeerDirectory

Trait PeerDirectory 

Source
pub trait PeerDirectory:
    Send
    + Sync
    + 'static {
    // Required method
    fn peers<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<PeerSnapshot, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Who the machine mesh service says is connected.

Required Methods§

Source

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

The current view, or why it could not be read (link down).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§