Provider

Trait Provider 

Source
pub trait Provider:
    TryFrom<ParsedArgs>
    + Send
    + Sync {
    // Required methods
    fn addrs<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, DiscoverError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn help() -> &'static str;
}

Required Methods§

Source

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

Retrieve IP addresses of nodes in this provider.

Source

fn help() -> &'static str

Returns text explaining how to use this provider.

That means which attributes are available and what the value of those attributes can be. Any other information that the user of this provider needs to know should also be explained.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§